From 47b55c0d9fccf3994f86fd764cefca3a2f734dbe Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sat, 15 Oct 2011 22:03:44 +0200 Subject: cppcheck (bzr r10678) --- src/display/curve.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/display/curve.cpp') 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) ); } -- cgit v1.2.3