diff options
| author | Tavmjong Bah & Kamalpreet Grewal <> | 2016-08-15 05:15:09 +0000 |
|---|---|---|
| committer | kamalpreetgrewal <grewalkamal005@gmail.com> | 2016-08-15 05:15:09 +0000 |
| commit | 11e0546b1c039fc84c1a0f86a4681df34642916b (patch) | |
| tree | 5a1e2bdfa01c1dccf999624ebdf57d6b3a00dcc9 /src/document.cpp | |
| parent | Merge changes from trunk (diff) | |
| download | inkscape-11e0546b1c039fc84c1a0f86a4681df34642916b.tar.gz inkscape-11e0546b1c039fc84c1a0f86a4681df34642916b.zip | |
Add changes for compilation with trunk
(bzr r14949.1.65)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/document.cpp b/src/document.cpp index 27fbaf8d8..bd59da501 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -1060,8 +1060,8 @@ void _getObjectsByClassRecursive(Glib::ustring const &klass, SPObject *parent, s } // Check children - for (SPObject *child = parent->children; child; child = child->next) { - _getObjectsByClassRecursive( klass, child, objects ); + for (auto& child : parent->children) { + _getObjectsByClassRecursive( klass, &child, objects ); } } } @@ -1085,8 +1085,8 @@ void _getObjectsByElementRecursive(Glib::ustring const &element, SPObject *paren } // Check children - for (SPObject *child = parent->children; child; child = child->next) { - _getObjectsByElementRecursive(element, child, objects); + for (auto& child : parent->children) { + _getObjectsByElementRecursive(element, &child, objects); } } } |
