diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:52:13 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:52:13 +0000 |
| commit | 3d15e9e5d472920043498e741c52333db2d60415 (patch) | |
| tree | 91783db00e3c6339f10465569efa2228314f0056 /src/live_effects/lpe-perspective-envelope.cpp | |
| parent | modernize loops (diff) | |
| download | inkscape-3d15e9e5d472920043498e741c52333db2d60415.tar.gz inkscape-3d15e9e5d472920043498e741c52333db2d60415.zip | |
modernize loops (2)
Diffstat (limited to 'src/live_effects/lpe-perspective-envelope.cpp')
| -rw-r--r-- | src/live_effects/lpe-perspective-envelope.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-perspective-envelope.cpp b/src/live_effects/lpe-perspective-envelope.cpp index 6d0cd707f..541055bdb 100644 --- a/src/live_effects/lpe-perspective-envelope.cpp +++ b/src/live_effects/lpe-perspective-envelope.cpp @@ -205,8 +205,8 @@ void LPEPerspectiveEnvelope::doEffect(SPCurve *curve) } int h = 0; for(auto & i : solmatrix) { - for( int j = 0; j < 8; j++ ) { - gslSolmatrix[h] = i[j]; + for(double j : i) { + gslSolmatrix[h] = j; h++; } } @@ -221,12 +221,12 @@ void LPEPerspectiveEnvelope::doEffect(SPCurve *curve) gsl_linalg_LU_solve (&m.matrix, p, &b.vector, x); h = 0; for(auto & i : projmatrix) { - for( int j = 0; j < 3; j++ ) { + for(double & j : i) { if(h==8) { projmatrix[2][2] = 1.0; continue; } - i[j] = gsl_vector_get(x, h); + j = gsl_vector_get(x, h); h++; } } |
