summaryrefslogtreecommitdiffstats
path: root/src/display
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
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')
-rw-r--r--src/display/curve.cpp8
-rw-r--r--src/display/snap-indicator.cpp2
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();