summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorAbhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom>2010-07-03 17:20:36 +0000
committerAbhishek Sharma Public <spyzerdotabhishek0at-signgmaildotcom>2010-07-03 17:20:36 +0000
commit1aad26aea24f62b63c992118f36b12483f9a5414 (patch)
tree5629cd23a5343c00dae666c82dcebb6a1e7b7c6a /src/gradient-chemistry.cpp
parentNew Class SPDocumentUndo created which takes care of c++fying some non SPDocu... (diff)
downloadinkscape-1aad26aea24f62b63c992118f36b12483f9a5414.tar.gz
inkscape-1aad26aea24f62b63c992118f36b12483f9a5414.zip
another c++ification for sp-object.h/cpp and still in progress...
(bzr r9546.1.4)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index 76b29bb09..0d99e7fa6 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -155,7 +155,7 @@ count_gradient_hrefs(SPObject *o, SPGradient *gr)
i ++;
}
- for (SPObject *child = sp_object_first_child(o);
+ for (SPObject *child = o->first_child();
child != NULL; child = SP_OBJECT_NEXT(child)) {
i += count_gradient_hrefs(child, gr);
}
@@ -718,7 +718,7 @@ sp_item_gradient_reverse_vector (SPItem *item, bool fill_or_stroke)
GSList *child_reprs = NULL;
GSList *child_objects = NULL;
std::vector<double> offsets;
- for (SPObject *child = sp_object_first_child(vector);
+ for (SPObject *child = vector->first_child();
child != NULL; child = SP_OBJECT_NEXT(child)) {
child_reprs = g_slist_prepend (child_reprs, SP_OBJECT_REPR(child));
child_objects = g_slist_prepend (child_objects, child);