summaryrefslogtreecommitdiffstats
path: root/src/object/sp-item.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
commit169dff19d4da8d76e69b8e896aa25b0013639c03 (patch)
treea0c070fa95188b5cde708ac285e6a2db9df4a83f /src/object/sp-item.cpp
parentAvoid creating a new document before opening an old document. (diff)
downloadinkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz
inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip
modernize loops
Diffstat (limited to 'src/object/sp-item.cpp')
-rw-r--r--src/object/sp-item.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/sp-item.cpp b/src/object/sp-item.cpp
index cbfd126f9..5157ff7eb 100644
--- a/src/object/sp-item.cpp
+++ b/src/object/sp-item.cpp
@@ -1298,9 +1298,9 @@ void SPItem::adjust_stroke( gdouble ex )
style->stroke_width.set = TRUE;
if ( !style->stroke_dasharray.values.empty() ) {
- for (unsigned i = 0; i < style->stroke_dasharray.values.size(); i++) {
- style->stroke_dasharray.values[i].value *= ex;
- style->stroke_dasharray.values[i].computed *= ex;
+ for (auto & value : style->stroke_dasharray.values) {
+ value.value *= ex;
+ value.computed *= ex;
}
style->stroke_dashoffset.value *= ex;
style->stroke_dashoffset.computed *= ex;