summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/dash-selector.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/ui/widget/dash-selector.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/ui/widget/dash-selector.cpp')
-rw-r--r--src/ui/widget/dash-selector.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget/dash-selector.cpp b/src/ui/widget/dash-selector.cpp
index 59149fb7c..81e7881b6 100644
--- a/src/ui/widget/dash-selector.cpp
+++ b/src/ui/widget/dash-selector.cpp
@@ -114,8 +114,8 @@ void DashSelector::init_dashes() {
SPStyle style;
dashes = g_new (double *, dash_prefs.size() + 2); // +1 for custom slot, +1 for terminator slot
- for (std::vector<Glib::ustring>::iterator i = dash_prefs.begin(); i != dash_prefs.end(); ++i) {
- style.readFromPrefs( *i );
+ for (auto & dash_pref : dash_prefs) {
+ style.readFromPrefs( dash_pref );
if (!style.stroke_dasharray.values.empty()) {
dashes[pos] = g_new (double, style.stroke_dasharray.values.size() + 1);