summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-offset.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/lpe-offset.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/lpe-offset.cpp')
-rw-r--r--src/live_effects/lpe-offset.cpp8
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;
}