summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-connection.h
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@nokia.com>2008-08-28 15:49:32 +0300
committerMikhail Zabaluev <mikhail.zabaluev@nokia.com>2008-08-28 15:49:32 +0300
commitc3050a44fe02fc6c75d05db966c9605e13ac5516 (patch)
tree3f7ca3b08a7c9daf0f91e4a93fdbfa36ee70b7aa /telepathy-glib/base-connection.h
parent296eb6d0bc11d6b24f1d154fef0533f583284695 (diff)
downloadtelepathy-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.h2
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; \