summaryrefslogtreecommitdiffstats
path: root/src/sp-filter.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-07-13 11:36:19 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-07-13 11:36:19 +0000
commitd1947e768272c703674129d5c583204ff2b59251 (patch)
treec1bf1563d0c0837cbab3733c18df0c7c82b18ff4 /src/sp-filter.cpp
parentMerged trunk (diff)
downloadinkscape-d1947e768272c703674129d5c583204ff2b59251.tar.gz
inkscape-d1947e768272c703674129d5c583204ff2b59251.zip
Second part of new SPObject children list
(bzr r14954.1.19)
Diffstat (limited to 'src/sp-filter.cpp')
-rw-r--r--src/sp-filter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp-filter.cpp b/src/sp-filter.cpp
index c17c67fc5..da3f12f5f 100644
--- a/src/sp-filter.cpp
+++ b/src/sp-filter.cpp
@@ -268,8 +268,8 @@ Inkscape::XML::Node* SPFilter::write(Inkscape::XML::Document *doc, Inkscape::XML
}
GSList *l = NULL;
- for ( SPObject *child = this->firstChild(); child; child = child->getNext() ) {
- Inkscape::XML::Node *crepr = child->updateRepr(doc, NULL, flags);
+ for (auto& child: _children) {
+ Inkscape::XML::Node *crepr = child.updateRepr(doc, NULL, flags);
if (crepr) {
l = g_slist_prepend (l, crepr);
@@ -282,8 +282,8 @@ Inkscape::XML::Node* SPFilter::write(Inkscape::XML::Document *doc, Inkscape::XML
l = g_slist_remove (l, l->data);
}
} else {
- for ( SPObject *child = this->firstChild() ; child; child = child->getNext() ) {
- child->updateRepr(flags);
+ for (auto& child: _children) {
+ child.updateRepr(flags);
}
}