summaryrefslogtreecommitdiffstats
path: root/src/live_effects/spiro.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/live_effects/spiro.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/live_effects/spiro.cpp')
-rw-r--r--src/live_effects/spiro.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/spiro.cpp b/src/live_effects/spiro.cpp
index 54bc021c7..4c129bafd 100644
--- a/src/live_effects/spiro.cpp
+++ b/src/live_effects/spiro.cpp
@@ -672,11 +672,11 @@ spiro_iter(spiro_seg *s, bandmat *m, int *perm, double *v, const int n)
for (int i = 0; i < nmat; i++) {
v[i] = 0.;
- for (int j = 0; j < 11; j++) {
- m[i].a[j] = 0.;
+ for (double & j : m[i].a) {
+ j = 0.;
}
- for (int j = 0; j < 5; j++) {
- m[i].al[j] = 0.;
+ for (double & j : m[i].al) {
+ j = 0.;
}
}