summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-embrodery-stitch-ordering.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:52:13 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:52:13 +0000
commit3d15e9e5d472920043498e741c52333db2d60415 (patch)
tree91783db00e3c6339f10465569efa2228314f0056 /src/live_effects/lpe-embrodery-stitch-ordering.cpp
parentmodernize loops (diff)
downloadinkscape-3d15e9e5d472920043498e741c52333db2d60415.tar.gz
inkscape-3d15e9e5d472920043498e741c52333db2d60415.zip
modernize loops (2)
Diffstat (limited to 'src/live_effects/lpe-embrodery-stitch-ordering.cpp')
-rw-r--r--src/live_effects/lpe-embrodery-stitch-ordering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/live_effects/lpe-embrodery-stitch-ordering.cpp b/src/live_effects/lpe-embrodery-stitch-ordering.cpp
index 1c3548420..3858accc6 100644
--- a/src/live_effects/lpe-embrodery-stitch-ordering.cpp
+++ b/src/live_effects/lpe-embrodery-stitch-ordering.cpp
@@ -784,8 +784,7 @@ bool FindShortestReconnect(std::vector<OrderingSegment> &segments, std::vector<O
void AssertIsTour(std::vector<OrderingGroup *> &groups, std::vector<OrderingGroupConnection *> &connections, OrderingGroupConnection *longestConnection)
{
for (auto & connection : connections) {
- for (int i = 0; i < 2; i++) {
- OrderingGroupPoint *pnt = connection->points[i];
+ for (auto pnt : connection->points) {
assert(pnt->connection == connection);
assert(pnt->connection->points[pnt->indexInConnection] == pnt);
assert(pnt->group->endpoints[pnt->indexInGroup] == pnt);