diff options
author | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2008-08-28 15:49:32 +0300 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@nokia.com> | 2008-08-28 15:49:32 +0300 |
commit | c3050a44fe02fc6c75d05db966c9605e13ac5516 (patch) | |
tree | 3f7ca3b08a7c9daf0f91e4a93fdbfa36ee70b7aa /telepathy-glib/base-connection.h | |
parent | 296eb6d0bc11d6b24f1d154fef0533f583284695 (diff) | |
download | telepathy-glib-c3050a44fe02fc6c75d05db966c9605e13ac5516.tar.gz |
Made TP_BASE_CONNECTION_ERROR_IF_NOT_CONNECTED C++-friendly
The expansion of the macro had an implicit cast of a string literal
to gchar *, which causes a C++ compiler warning.
Diffstat (limited to 'telepathy-glib/base-connection.h')
-rw-r--r-- | telepathy-glib/base-connection.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telepathy-glib/base-connection.h b/telepathy-glib/base-connection.h index cad945a8e..81f322f61 100644 --- a/telepathy-glib/base-connection.h +++ b/telepathy-glib/base-connection.h @@ -299,7 +299,7 @@ void tp_base_connection_register_with_contacts_mixin (TpBaseConnection *self); if (c->status != TP_CONNECTION_STATUS_CONNECTED) \ { \ GError e = { TP_ERRORS, TP_ERROR_DISCONNECTED, \ - "Connection is disconnected" }; \ + (gchar *) "Connection is disconnected" }; \ \ dbus_g_method_return_error ((context), &e); \ return; \ |