Code

now that selection description includes style (filtered, clipped), we need to update...
[inkscape.git] / src / sp-item-group.cpp
index afa3880b8ae6f6f453ec20090c061b3b0a6d01c8..862a36cb065888c7ba178fe561be9375ebf2e459 100644 (file)
@@ -504,15 +504,12 @@ sp_item_group_ungroup (SPGroup *group, GSList **children, bool do_done)
 GSList *
 sp_item_group_item_list (SPGroup * group)
 {
-        GSList *s;
-    SPObject *o;
-
     g_return_val_if_fail (group != NULL, NULL);
     g_return_val_if_fail (SP_IS_GROUP (group), NULL);
 
-    s = NULL;
+    GSList *s = NULL;
 
-    for ( o = sp_object_first_child(SP_OBJECT(group)) ; o != NULL ; o = SP_OBJECT_NEXT(o) ) {
+    for (SPObject *o = sp_object_first_child(SP_OBJECT(group)) ; o != NULL ; o = SP_OBJECT_NEXT(o) ) {
         if (SP_IS_ITEM (o)) {
             s = g_slist_prepend (s, o);
         }