diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-10-15 20:03:44 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-10-15 20:03:44 +0000 |
| commit | 47b55c0d9fccf3994f86fd764cefca3a2f734dbe (patch) | |
| tree | fae67e17d41b9848ab204db00cc37ecbd2b9098b /src/display | |
| parent | Use desktop coordinates for finding snap candidates (regression introduced in... (diff) | |
| download | inkscape-47b55c0d9fccf3994f86fd764cefca3a2f734dbe.tar.gz inkscape-47b55c0d9fccf3994f86fd764cefca3a2f734dbe.zip | |
cppcheck
(bzr r10678)
Diffstat (limited to 'src/display')
| -rw-r--r-- | src/display/curve.cpp | 8 | ||||
| -rw-r--r-- | src/display/snap-indicator.cpp | 2 |
2 files changed, 5 insertions, 5 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) ); } diff --git a/src/display/snap-indicator.cpp b/src/display/snap-indicator.cpp index 72fdfbee7..e542d0c88 100644 --- a/src/display/snap-indicator.cpp +++ b/src/display/snap-indicator.cpp @@ -362,7 +362,7 @@ SnapIndicator::remove_snapsource() void SnapIndicator::remove_debugging_points() { - for (std::list<TemporaryItem *>::const_iterator i = _debugging_points.begin(); i != _debugging_points.end(); i++) { + for (std::list<TemporaryItem *>::const_iterator i = _debugging_points.begin(); i != _debugging_points.end(); ++i) { _desktop->remove_temporary_canvasitem(*i); } _debugging_points.clear(); |
