diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-11-10 04:52:54 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-11-10 04:52:54 +0000 |
| commit | 25dbfe14e1270e0c5df30467f4116b3d14eca836 (patch) | |
| tree | 973cd7038b5d2940b6c70e1fd2e24478d55081b8 /src/line-snapper.cpp | |
| parent | Fix markup warning in km.po; enclose translators' email addresses in parenthe... (diff) | |
| download | inkscape-25dbfe14e1270e0c5df30467f4116b3d14eca836.tar.gz inkscape-25dbfe14e1270e0c5df30467f4116b3d14eca836.zip | |
Warning cleanup
(bzr r4052)
Diffstat (limited to 'src/line-snapper.cpp')
| -rw-r--r-- | src/line-snapper.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp index b0dcca22c..3b5bd047c 100644 --- a/src/line-snapper.cpp +++ b/src/line-snapper.cpp @@ -24,27 +24,27 @@ void Inkscape::LineSnapper::_doFreeSnap(SnappedConstraints &sc, } void Inkscape::LineSnapper::_doConstrainedSnap(SnappedConstraints &sc, - Inkscape::Snapper::PointType const &t, - NR::Point const &p, - bool const &f, - std::vector<NR::Point> &points_to_snap, - ConstraintLine const &c, - std::list<SPItem const *> const &it) const + Inkscape::Snapper::PointType const &/*t*/, + NR::Point const &p, + bool const &/*f*/, + std::vector<NR::Point> &/*points_to_snap*/, + ConstraintLine const &c, + std::list<SPItem const *> const &/*it*/) const { Inkscape::SnappedPoint s = SnappedPoint(p, NR_HUGE); /* Get the lines that we will try to snap to */ const LineList lines = _getSnapLines(p); - + for (LineList::const_iterator i = lines.begin(); i != lines.end(); i++) { /* Normal to the line we're trying to snap along */ NR::Point const n(NR::rot90(NR::unit_vector(c.getDirection()))); NR::Point const point_on_line = c.hasPoint() ? c.getPoint() : p; - - /* Constant term of the line we're trying to snap along */ + + /* Constant term of the line we're trying to snap along */ NR::Coord const q = dot(n, point_on_line); /* Try to intersect this line with the target line */ @@ -55,7 +55,7 @@ void Inkscape::LineSnapper::_doConstrainedSnap(SnappedConstraints &sc, if (k == Geom::intersects) { const NR::Coord dist = L2(t - p); //Store any line that's within snapping range - if (dist < getDistance()) { + if (dist < getDistance()) { _addSnappedLine(sc, t, dist, c.getDirection(), t); //SnappedLine dummy = SnappedLine(t, dist, c.getDirection(), t); //sc.infinite_lines.push_back(dummy); |
