[Telepathy-commits] [telepathy-glib/master] TpBaseConnection: coding style trivia

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Oct 15 03:44:59 PDT 2008


---
 telepathy-glib/base-connection.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 02de757..116a1eb 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -283,7 +283,7 @@ enum
 static guint signals[N_SIGNALS] = {0};
 
 #define TP_BASE_CONNECTION_GET_PRIVATE(obj) \
-    ((TpBaseConnectionPrivate *)obj->priv)
+    ((TpBaseConnectionPrivate *) obj->priv)
 
 typedef struct _ChannelRequest ChannelRequest;
 
@@ -515,7 +515,7 @@ tp_base_connection_dispose (GObject *object)
     {
       if (priv->handles[i])
         {
-          g_object_unref ((GObject *)priv->handles[i]);
+          g_object_unref ((GObject *) priv->handles[i]);
           priv->handles[i] = NULL;
         }
     }
@@ -1192,7 +1192,7 @@ tp_base_connection_constructor (GType type, guint n_construct_properties,
           (GCallback) manager_channel_closed_cb, self);
     }
 
-  return (GObject *)self;
+  return (GObject *) self;
 }
 
 
@@ -2755,7 +2755,7 @@ tp_base_connection_add_interfaces (TpBaseConnection *self,
 static void
 conn_iface_init (gpointer g_iface, gpointer iface_data)
 {
-  TpSvcConnectionClass *klass = (TpSvcConnectionClass *)g_iface;
+  TpSvcConnectionClass *klass = g_iface;
 
 #define IMPLEMENT(prefix,x) tp_svc_connection_implement_##x (klass, \
     tp_base_connection_##prefix##x)
-- 
1.5.6.5




More information about the Telepathy-commits mailing list