From 1ecc906df8663606434c8aa2f15dbd252977965f Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 29 Dec 2008 05:22:00 +0000 Subject: [PATCH] coding style --- src/sp-item-group.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp index afa3880b8..862a36cb0 100644 --- a/src/sp-item-group.cpp +++ b/src/sp-item-group.cpp @@ -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); } -- 2.30.2