summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathConversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/livarot/PathConversion.cpp')
-rw-r--r--src/livarot/PathConversion.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/livarot/PathConversion.cpp b/src/livarot/PathConversion.cpp
index 88a8c5660..dfea8755d 100644
--- a/src/livarot/PathConversion.cpp
+++ b/src/livarot/PathConversion.cpp
@@ -1297,8 +1297,8 @@ void Path::Fill(Shape* dest, int pathID, bool justAdd, bool closeIfNeeded, bool
if ( back ) {
{
// invert && back && !weighted
- for (int i = 0; i < int(pts.size()); i++) {
- dest->AddPoint(pts[i].p);
+ for (auto & pt : pts) {
+ dest->AddPoint(pt.p);
}
int lastM = 0;
int curP = 1;
@@ -1381,8 +1381,8 @@ void Path::Fill(Shape* dest, int pathID, bool justAdd, bool closeIfNeeded, bool
{
// invert && !back && !weighted
- for (int i = 0; i < int(pts.size()); i++) {
- dest->AddPoint(pts[i].p);
+ for (auto & pt : pts) {
+ dest->AddPoint(pt.p);
}
int lastM = 0;
int curP = 1;
@@ -1437,8 +1437,8 @@ void Path::Fill(Shape* dest, int pathID, bool justAdd, bool closeIfNeeded, bool
if ( back ) {
{
// !invert && back && !weighted
- for (int i = 0; i < int(pts.size()); i++) {
- dest->AddPoint(pts[i].p);
+ for (auto & pt : pts) {
+ dest->AddPoint(pt.p);
}
int lastM = 0;
@@ -1512,8 +1512,8 @@ void Path::Fill(Shape* dest, int pathID, bool justAdd, bool closeIfNeeded, bool
} else {
{
// !invert && !back && !weighted
- for (int i = 0;i < int(pts.size()); i++) {
- dest->AddPoint(pts[i].p);
+ for (auto & pt : pts) {
+ dest->AddPoint(pt.p);
}
int lastM = 0;