From b95db4b4d6c41793e804a235a869cb5107d35b22 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Fri, 11 Apr 2008 08:03:13 +0000 Subject: Refactor snapping mechanisms: in seltrans.cpp, a GSList was converted to a std::list in four different places. Now this is handled in only one place (bzr r5407) --- src/snap.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/snap.h') diff --git a/src/snap.h b/src/snap.h index 8bab5b0cf..0de8902f4 100644 --- a/src/snap.h +++ b/src/snap.h @@ -61,7 +61,7 @@ public: NR::Point const &p, bool const &first_point, std::vector &points_to_snap, - std::list const &it, + std::vector const &it, std::vector *unselected_nodes) const; Inkscape::SnappedPoint constrainedSnap(Inkscape::Snapper::PointType t, @@ -74,37 +74,37 @@ public: bool const &first_point, std::vector &points_to_snap, Inkscape::Snapper::ConstraintLine const &c, - std::list const &it) const; + std::vector const &it) const; Inkscape::SnappedPoint guideSnap(NR::Point const &p, NR::Point const &guide_normal) const; Inkscape::SnappedPoint freeSnapTranslation(Inkscape::Snapper::PointType t, std::vector const &p, - std::list const &it, + std::vector const &it, NR::Point const &tr) const; Inkscape::SnappedPoint constrainedSnapTranslation(Inkscape::Snapper::PointType t, std::vector const &p, - std::list const &it, + std::vector const &it, Inkscape::Snapper::ConstraintLine const &c, NR::Point const &tr) const; Inkscape::SnappedPoint freeSnapScale(Inkscape::Snapper::PointType t, std::vector const &p, - std::list const &it, + std::vector const &it, NR::scale const &s, NR::Point const &o) const; Inkscape::SnappedPoint constrainedSnapScale(Inkscape::Snapper::PointType t, std::vector const &p, - std::list const &it, + std::vector const &it, NR::scale const &s, NR::Point const &o) const; Inkscape::SnappedPoint constrainedSnapStretch(Inkscape::Snapper::PointType t, std::vector const &p, - std::list const &it, + std::vector const &it, NR::Coord const &s, NR::Point const &o, NR::Dim2 d, @@ -112,7 +112,7 @@ public: Inkscape::SnappedPoint freeSnapSkew(Inkscape::Snapper::PointType t, std::vector const &p, - std::list const &it, + std::vector const &it, NR::Coord const &s, NR::Point const &o, NR::Dim2 d) const; @@ -180,7 +180,7 @@ private: Inkscape::SnappedPoint _snapTransformed(Inkscape::Snapper::PointType type, std::vector const &points, - std::list const &ignore, + std::vector const &ignore, bool constrained, Inkscape::Snapper::ConstraintLine const &constraint, Transformation transformation_type, -- cgit v1.2.3