/srv/mercurial-server/detachablepurple: 4470ec9708e6: Removed so...

Gilles Bedel gillux at cpw.pidgin.im
Fri Jun 15 22:01:36 EDT 2012


Changeset: 4470ec9708e62c556fd90c592e34207c1d424bff
Author:	 Gilles Bedel <gillux at cpw.pidgin.im>
Date:	 2012-05-15 03:16 +0000
Branch:	 cpw.gillux.detachablepurple
URL: http://hg.pidgin.im/srv/mercurial-server/detachablepurple/rev/4470ec9708e6

Description:

Removed some unnecessary calls to the G_OBJECT() macro.

diffstat:

 libpurple/dbus/constructor.c |  2 +-
 libpurple/pobject.c          |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff --git a/libpurple/dbus/constructor.c b/libpurple/dbus/constructor.c
--- a/libpurple/dbus/constructor.c
+++ b/libpurple/dbus/constructor.c
@@ -220,7 +220,7 @@
 		if (!prop_name)
 			continue;
 
-		pspec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(pobject)),
+		pspec = g_object_class_find_property(G_OBJECT_GET_CLASS(pobject),
 		                                     prop_name);
 		if (!pspec)
 			continue;
diff --git a/libpurple/pobject.c b/libpurple/pobject.c
--- a/libpurple/pobject.c
+++ b/libpurple/pobject.c
@@ -434,7 +434,7 @@
 	GValue gval2 = {0, };
 
 	/* Check if such a named property exists. */
-	pspec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(pobj)),
+	pspec = g_object_class_find_property(G_OBJECT_GET_CLASS(pobj),
 	                                     prop_name);
 	if (!pspec)
 		return NULL;
@@ -478,7 +478,7 @@
 	GValue gval = {0, };
 
 	/* Check if such a named property exists. */
-	pspec = g_object_class_find_property(G_OBJECT_GET_CLASS(G_OBJECT(pobj)),
+	pspec = g_object_class_find_property(G_OBJECT_GET_CLASS(pobj),
 	                                     prop_name);
 	if (!pspec)
 		return FALSE;



More information about the Commits mailing list