From 2eb76fb0bd4b8572866d3c2390eaa82747890292 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Wed, 7 Mar 2012 18:19:18 +0100 Subject: cppcheck (bzr r11052) --- src/line-snapper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/line-snapper.cpp') diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp index c8f10fb29..d0c4c4583 100644 --- a/src/line-snapper.cpp +++ b/src/line-snapper.cpp @@ -58,7 +58,7 @@ void Inkscape::LineSnapper::freeSnap(IntermSnapResults &isr, // For this we need to know where the origin is located of the line that is currently being rotated, std::vector > const origins_and_vectors = p.getOriginsAndVectors(); // Now we will iterate over all the origins and vectors and see which of these will get use a tangential or perpendicular snap - for (std::vector >::const_iterator it_origin_or_vector = origins_and_vectors.begin(); it_origin_or_vector != origins_and_vectors.end(); it_origin_or_vector++) { + for (std::vector >::const_iterator it_origin_or_vector = origins_and_vectors.begin(); it_origin_or_vector != origins_and_vectors.end(); ++it_origin_or_vector) { if ((*it_origin_or_vector).second) { // if "second" is true then "first" is a vector, otherwise it's a point // When snapping a line with a constant vector (constant direction) to a guide or grid line, // then either all points will be perpendicular/tangential or none at all. This is not very useful @@ -137,7 +137,7 @@ void Inkscape::LineSnapper::constrainedSnap(IntermSnapResults &isr, { inters = Geom::intersection(constraint_line, gridguide_line); } - catch (Geom::InfiniteSolutions e) + catch (Geom::InfiniteSolutions &e) { // We're probably dealing with parallel lines, so snapping doesn't make any sense here continue; // jump to the next iterator in the for-loop -- cgit v1.2.3