summaryrefslogtreecommitdiffstats
path: root/src/snap-preferences.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/snap-preferences.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/snap-preferences.cpp')
-rw-r--r--src/snap-preferences.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snap-preferences.cpp b/src/snap-preferences.cpp
index e38ffea7f..876293aca 100644
--- a/src/snap-preferences.cpp
+++ b/src/snap-preferences.cpp
@@ -25,8 +25,8 @@ Inkscape::SnapPreferences::SnapPreferences() :
g_assert((SNAPTARGET_DATUMS_CATEGORY != 0) && !(SNAPTARGET_DATUMS_CATEGORY & (SNAPTARGET_DATUMS_CATEGORY - 1)));
g_assert((SNAPTARGET_OTHERS_CATEGORY != 0) && !(SNAPTARGET_OTHERS_CATEGORY & (SNAPTARGET_OTHERS_CATEGORY - 1)));
- for (int n = 0; n < SNAPTARGET_MAX_ENUM_VALUE; n++) {
- _active_snap_targets[n] = -1;
+ for (int & _active_snap_target : _active_snap_targets) {
+ _active_snap_target = -1;
}
}