summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c177d4)
raw | patch | inline | side by side (parent: 2c177d4)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 29 Dec 2008 05:22:00 +0000 (05:22 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Mon, 29 Dec 2008 05:22:00 +0000 (05:22 +0000) |
src/sp-item-group.cpp | patch | blob | history |
diff --git a/src/sp-item-group.cpp b/src/sp-item-group.cpp
index afa3880b8ae6f6f453ec20090c061b3b0a6d01c8..862a36cb065888c7ba178fe561be9375ebf2e459 100644 (file)
--- a/src/sp-item-group.cpp
+++ b/src/sp-item-group.cpp
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);
}