summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathCutting.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-08-03 20:57:37 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-08-03 20:57:37 +0000
commit2580137d7c69ba5752ca7ce698d6cf104ff7f00c (patch)
tree0e0625f54a21c0390f5b5ec1415bfcaf0e7c00f4 /src/livarot/PathCutting.cpp
parentfix initialization (diff)
downloadinkscape-2580137d7c69ba5752ca7ce698d6cf104ff7f00c.tar.gz
inkscape-2580137d7c69ba5752ca7ce698d6cf104ff7f00c.zip
fix small "performance" issues (cppcheck)
(bzr r12461)
Diffstat (limited to 'src/livarot/PathCutting.cpp')
-rw-r--r--src/livarot/PathCutting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp
index 848d8daa8..3ce907bf3 100644
--- a/src/livarot/PathCutting.cpp
+++ b/src/livarot/PathCutting.cpp
@@ -482,7 +482,7 @@ double Path::Length()
Geom::Point lastP = pts[0].p;
double len = 0;
- for (std::vector<path_lineto>::const_iterator i = pts.begin(); i != pts.end(); i++) {
+ for (std::vector<path_lineto>::const_iterator i = pts.begin(); i != pts.end(); ++i) {
if ( i->isMoveTo != polyline_moveto ) {
len += Geom::L2(i->p - lastP);
@@ -505,7 +505,7 @@ double Path::Surface()
Geom::Point lastP = lastM;
double surf = 0;
- for (std::vector<path_lineto>::const_iterator i = pts.begin(); i != pts.end(); i++) {
+ for (std::vector<path_lineto>::const_iterator i = pts.begin(); i != pts.end(); ++i) {
if ( i->isMoveTo == polyline_moveto ) {
surf += Geom::cross(lastM - lastP, lastM);
@@ -900,7 +900,7 @@ Path::cut_position* Path::CurvilignToPosition(int nbCv, double *cvAbs, int &nbCu
Geom::Point lastM = pts[0].p;
Geom::Point lastP = lastM;
- for (std::vector<path_lineto>::const_iterator i = pts.begin(); i != pts.end(); i++) {
+ for (std::vector<path_lineto>::const_iterator i = pts.begin(); i != pts.end(); ++i) {
if ( i->isMoveTo == polyline_moveto ) {