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/snapped-curve.cpp | |
| 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/snapped-curve.cpp')
| -rw-r--r-- | src/snapped-curve.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp index 493925d48..8fdf1d46f 100644 --- a/src/snapped-curve.cpp +++ b/src/snapped-curve.cpp @@ -69,7 +69,7 @@ Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedCurve const &cur // There might be multiple intersections: find the closest Geom::Coord best_dist = Geom::infinity(); Geom::Point best_p = Geom::Point(Geom::infinity(), Geom::infinity()); - for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); i++) { + for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); ++i) { Geom::Point p_ix = this->_curve->pointAt((*i).ta); Geom::Coord dist = Geom::distance(p_ix, p); @@ -130,7 +130,7 @@ Inkscape::SnappedPoint Inkscape::SnappedCurve::intersect(SnappedLine const &line // There might be multiple intersections: find the closest Geom::Coord best_dist = Geom::infinity(); Geom::Point best_p = Geom::Point(Geom::infinity(), Geom::infinity()); - for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); i++) { + for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); ++i) { Geom::Point p_ix = this->_curve->pointAt((*i).ta); Geom::Coord dist = Geom::distance(p_ix, p); @@ -166,7 +166,7 @@ bool getClosestCurve(std::list<Inkscape::SnappedCurve> const &list, Inkscape::Sn { bool success = false; - for (std::list<Inkscape::SnappedCurve>::const_iterator i = list.begin(); i != list.end(); i++) { + for (std::list<Inkscape::SnappedCurve>::const_iterator i = list.begin(); i != list.end(); ++i) { if (exclude_paths && ((*i).getTarget() == Inkscape::SNAPTARGET_PATH)) { continue; } @@ -184,12 +184,12 @@ bool getClosestIntersectionCS(std::list<Inkscape::SnappedCurve> const &list, Geo { bool success = false; - for (std::list<Inkscape::SnappedCurve>::const_iterator i = list.begin(); i != list.end(); i++) { + for (std::list<Inkscape::SnappedCurve>::const_iterator i = list.begin(); i != list.end(); ++i) { if ((*i).getTarget() != Inkscape::SNAPTARGET_BBOX_EDGE) { // We don't support snapping to intersections of bboxes, // as this would require two bboxes two be flashed in the snap indicator std::list<Inkscape::SnappedCurve>::const_iterator j = i; - j++; - for (; j != list.end(); j++) { + ++j; + for (; j != list.end(); ++j) { if ((*j).getTarget() != Inkscape::SNAPTARGET_BBOX_EDGE) { // We don't support snapping to intersections of bboxes Inkscape::SnappedPoint sp = (*i).intersect(*j, p, dt2doc); if (sp.getAtIntersection()) { @@ -219,10 +219,10 @@ bool getClosestIntersectionCL(std::list<Inkscape::SnappedCurve> const &curve_lis { bool success = false; - for (std::list<Inkscape::SnappedCurve>::const_iterator i = curve_list.begin(); i != curve_list.end(); i++) { + for (std::list<Inkscape::SnappedCurve>::const_iterator i = curve_list.begin(); i != curve_list.end(); ++i) { if ((*i).getTarget() != Inkscape::SNAPTARGET_BBOX_EDGE) { // We don't support snapping to intersections of bboxes, // as this would require two bboxes two be flashed in the snap indicator - for (std::list<Inkscape::SnappedLine>::const_iterator j = line_list.begin(); j != line_list.end(); j++) { + for (std::list<Inkscape::SnappedLine>::const_iterator j = line_list.begin(); j != line_list.end(); ++j) { if ((*j).getTarget() != Inkscape::SNAPTARGET_BBOX_EDGE) { // We don't support snapping to intersections of bboxes Inkscape::SnappedPoint sp = (*i).intersect(*j, p, dt2doc); if (sp.getAtIntersection()) { |
