diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/object/sp-item.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/object/sp-item.cpp')
| -rw-r--r-- | src/object/sp-item.cpp | 6 |
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; |
