diff options
Diffstat (limited to 'src/sp-style-elem.cpp')
| -rw-r--r-- | src/sp-style-elem.cpp | 4 |
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 ); } } } |
