summaryrefslogtreecommitdiffstats
path: root/src/line-snapper.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2011-10-18 05:54:57 +0000
committerKris <Kris.De.Gussem@hotmail.com>2011-10-18 05:54:57 +0000
commit48acbc6ed82b18fb07aa5e7964f7702428bade73 (patch)
treec54e5cb84bce1167d8f1baff59edb3b007dfd6f7 /src/line-snapper.cpp
parentpdf import. modify calculation of GradientTransform (Bug 530895) (diff)
downloadinkscape-48acbc6ed82b18fb07aa5e7964f7702428bade73.tar.gz
inkscape-48acbc6ed82b18fb07aa5e7964f7702428bade73.zip
cppcheck
(bzr r10681)
Diffstat (limited to 'src/line-snapper.cpp')
-rw-r--r--src/line-snapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp
index 66bc8c530..45b03c38b 100644
--- a/src/line-snapper.cpp
+++ b/src/line-snapper.cpp
@@ -34,7 +34,7 @@ void Inkscape::LineSnapper::freeSnap(IntermSnapResults &isr,
/* Get the lines that we will try to snap to */
const LineList lines = _getSnapLines(p.getPoint());
- for (LineList::const_iterator i = lines.begin(); i != lines.end(); i++) {
+ for (LineList::const_iterator i = lines.begin(); i != lines.end(); ++i) {
Geom::Point const p1 = i->second; // point at guide/grid line
Geom::Point const p2 = p1 + Geom::rot90(i->first); // 2nd point at guide/grid line
// std::cout << " line through " << i->second << " with normal " << i->first;
@@ -78,7 +78,7 @@ void Inkscape::LineSnapper::constrainedSnap(IntermSnapResults &isr,
/* Get the lines that we will try to snap to */
const LineList lines = _getSnapLines(pp);
- for (LineList::const_iterator i = lines.begin(); i != lines.end(); i++) {
+ for (LineList::const_iterator i = lines.begin(); i != lines.end(); ++i) {
Geom::Point const point_on_line = c.hasPoint() ? c.getPoint() : pp;
Geom::Line gridguide_line(i->second, i->second + Geom::rot90(i->first));