summaryrefslogtreecommitdiffstats
path: root/src/sp-style-elem.cpp
diff options
context:
space:
mode:
authorTavmjong Bah & Kamalpreet Grewal <>2016-08-15 05:15:09 +0000
committerkamalpreetgrewal <grewalkamal005@gmail.com>2016-08-15 05:15:09 +0000
commit11e0546b1c039fc84c1a0f86a4681df34642916b (patch)
tree5a1e2bdfa01c1dccf999624ebdf57d6b3a00dcc9 /src/sp-style-elem.cpp
parentMerge changes from trunk (diff)
downloadinkscape-11e0546b1c039fc84c1a0f86a4681df34642916b.tar.gz
inkscape-11e0546b1c039fc84c1a0f86a4681df34642916b.zip
Add changes for compilation with trunk
(bzr r14949.1.65)
Diffstat (limited to 'src/sp-style-elem.cpp')
-rw-r--r--src/sp-style-elem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-style-elem.cpp b/src/sp-style-elem.cpp
index 0f5af619b..c15f810e9 100644
--- a/src/sp-style-elem.cpp
+++ b/src/sp-style-elem.cpp
@@ -258,8 +258,8 @@ void update_style_recursively( SPObject *object ) {
if (object->style) {
object->style->readFromObject( object );
}
- for (SPObject *child = object->children; child; child = child->next) {
- update_style_recursively( child );
+ for (auto& child : object->children) {
+ update_style_recursively( &child );
}
}
}