[Telepathy-commits] [telepathy-glib/master] Made TP_BASE_CONNECTION_ERROR_IF_NOT_CONNECTED C++-friendly
Mikhail Zabaluev
mikhail.zabaluev at nokia.com
Thu Aug 28 05:49:32 PDT 2008
The expansion of the macro had an implicit cast of a string literal
to gchar *, which causes a C++ compiler warning.
---
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 cad945a..81f322f 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; \
--
1.5.6.3
More information about the Telepathy-commits
mailing list