diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/live_effects/lpe-offset.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/live_effects/lpe-offset.cpp')
| -rw-r--r-- | src/live_effects/lpe-offset.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/live_effects/lpe-offset.cpp b/src/live_effects/lpe-offset.cpp index e8a1e7df7..b67ff49e8 100644 --- a/src/live_effects/lpe-offset.cpp +++ b/src/live_effects/lpe-offset.cpp @@ -132,8 +132,8 @@ sp_get_outer(Geom::PathVector pathvector) Geom::OptRect bbox; Geom::Path ret; Geom::PathVector ret_pv; - for (Geom::PathVector::iterator path_it = pathvector.begin(); path_it != pathvector.end(); ++path_it) { - Geom::Path iter = (*path_it); + for (auto & path_it : pathvector) { + Geom::Path iter = path_it; if (iter.empty()) { continue; } @@ -157,8 +157,8 @@ sp_get_inner(Geom::PathVector pathvector) Geom::PathVector ret_pv; Geom::PathVector outer = sp_get_outer(pathvector); Geom::OptRect bbox = outer.boundsFast(); - for (Geom::PathVector::iterator path_it = pathvector.begin(); path_it != pathvector.end(); ++path_it) { - Geom::Path iter = (*path_it); + for (auto & path_it : pathvector) { + Geom::Path iter = path_it; if (iter.empty()) { continue; } |
