Use audioscrobbler as return value, this silences a compiler warning and makes the code consistent with the other constructor functions.
Integrated in Ario svn revision 758 with a small modification:
--- plugins/audioscrobbler/ario-audioscrobbler.c (révision 757)
+++ plugins/audioscrobbler/ario-audioscrobbler.c (copie de travail)
@@ -243,7 +243,6 @@
- GObject *obj;
/* Invoke parent constructor. */
@@ -251,13 +250,11 @@
klass = ARIO_AUDIOSCROBBLER_CLASS (g_type_class_peek (ARIO_TYPE_AUDIOSCROBBLER));
parent_class = G_OBJECT_CLASS (g_type_class_peek_parent (klass));
- obj = parent_class->constructor (type,
+ audioscrobbler = ARIO_AUDIOSCROBBLER (parent_class->constructor (type,
- audioscrobbler = ARIO_AUDIOSCROBBLER (obj);
- return obj;
+ return G_OBJECT (audioscrobbler);
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.