From 48acbc6ed82b18fb07aa5e7964f7702428bade73 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Tue, 18 Oct 2011 07:54:57 +0200 Subject: cppcheck (bzr r10681) --- src/snapped-line.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/snapped-line.cpp') diff --git a/src/snapped-line.cpp b/src/snapped-line.cpp index d9cd48d5b..6c0c411d8 100644 --- a/src/snapped-line.cpp +++ b/src/snapped-line.cpp @@ -176,7 +176,7 @@ bool getClosestSLS(std::list const &list, Inkscape { bool success = false; - for (std::list::const_iterator i = list.begin(); i != list.end(); i++) { + for (std::list::const_iterator i = list.begin(); i != list.end(); ++i) { if ((i == list.begin()) || (*i).getSnapDistance() < result.getSnapDistance()) { result = *i; success = true; @@ -191,10 +191,10 @@ bool getClosestIntersectionSLS(std::list const &li { bool success = false; - for (std::list::const_iterator i = list.begin(); i != list.end(); i++) { + for (std::list::const_iterator i = list.begin(); i != list.end(); ++i) { std::list::const_iterator j = i; - j++; - for (; j != list.end(); j++) { + ++j; + for (; j != list.end(); ++j) { Inkscape::SnappedPoint sp = (*i).intersect(*j); if (sp.getAtIntersection()) { // if it's the first point @@ -221,7 +221,7 @@ bool getClosestSL(std::list const &list, Inkscape::Snappe { bool success = false; - for (std::list::const_iterator i = list.begin(); i != list.end(); i++) { + for (std::list::const_iterator i = list.begin(); i != list.end(); ++i) { if ((i == list.begin()) || (*i).getSnapDistance() < result.getSnapDistance()) { result = *i; success = true; @@ -236,10 +236,10 @@ bool getClosestIntersectionSL(std::list const &list, Inks { bool success = false; - for (std::list::const_iterator i = list.begin(); i != list.end(); i++) { + for (std::list::const_iterator i = list.begin(); i != list.end(); ++i) { std::list::const_iterator j = i; - j++; - for (; j != list.end(); j++) { + ++j; + for (; j != list.end(); ++j) { Inkscape::SnappedPoint sp = (*i).intersect(*j); if (sp.getAtIntersection()) { // if it's the first point @@ -266,8 +266,8 @@ bool getClosestIntersectionSL(std::list const &list1, std { bool success = false; - for (std::list::const_iterator i = list1.begin(); i != list1.end(); i++) { - for (std::list::const_iterator j = list2.begin(); j != list2.end(); j++) { + for (std::list::const_iterator i = list1.begin(); i != list1.end(); ++i) { + for (std::list::const_iterator j = list2.begin(); j != list2.end(); ++j) { Inkscape::SnappedPoint sp = (*i).intersect(*j); if (sp.getAtIntersection()) { // if it's the first point -- cgit v1.2.3