summaryrefslogtreecommitdiffstats
path: root/src/display/curve.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2011-10-15 20:03:44 +0000
committerKris <Kris.De.Gussem@hotmail.com>2011-10-15 20:03:44 +0000
commit47b55c0d9fccf3994f86fd764cefca3a2f734dbe (patch)
treefae67e17d41b9848ab204db00cc37ecbd2b9098b /src/display/curve.cpp
parentUse desktop coordinates for finding snap candidates (regression introduced in... (diff)
downloadinkscape-47b55c0d9fccf3994f86fd764cefca3a2f734dbe.tar.gz
inkscape-47b55c0d9fccf3994f86fd764cefca3a2f734dbe.zip
cppcheck
(bzr r10678)
Diffstat (limited to 'src/display/curve.cpp')
-rw-r--r--src/display/curve.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display/curve.cpp b/src/display/curve.cpp
index 5c18324eb..d52ee1fba 100644
--- a/src/display/curve.cpp
+++ b/src/display/curve.cpp
@@ -322,7 +322,7 @@ SPCurve::is_closed() const
return false;
} else {
bool closed = true;
- for (Geom::PathVector::const_iterator it = _pathv.begin(); it != _pathv.end(); it++) {
+ for (Geom::PathVector::const_iterator it = _pathv.begin(); it != _pathv.end(); ++it) {
if ( ! it->closed() ) {
closed = false;
break;
@@ -506,11 +506,11 @@ SPCurve::append(SPCurve const *curve2,
_pathv.push_back( (*it) );
}
- for (it++; it != curve2->_pathv.end(); it++) {
+ for (it++; it != curve2->_pathv.end(); ++it) {
_pathv.push_back( (*it) );
}
} else {
- for (Geom::PathVector::const_iterator it = curve2->_pathv.begin(); it != curve2->_pathv.end(); it++) {
+ for (Geom::PathVector::const_iterator it = curve2->_pathv.begin(); it != curve2->_pathv.end(); ++it) {
_pathv.push_back( (*it) );
}
}
@@ -553,7 +553,7 @@ SPCurve::append_continuous(SPCurve const *c1, gdouble tolerance)
newfirstpath.setInitial(lastpath.finalPoint());
lastpath.append( newfirstpath );
- for (path_it++; path_it != c1->_pathv.end(); path_it++) {
+ for (++path_it; path_it != c1->_pathv.end(); ++path_it) {
_pathv.push_back( (*path_it) );
}