From 169dff19d4da8d76e69b8e896aa25b0013639c03 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Wed, 2 Jan 2019 10:41:30 +0100 Subject: modernize loops --- src/object/sp-item.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/object/sp-item.cpp') 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; -- cgit v1.2.3