From 5560f5845f9ec804e1c540eb9c5dc15ca515e9af Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Thu, 1 May 2008 06:00:04 +0000 Subject: Warning and whitespace cleanup (bzr r5564) --- src/snapper.h | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/snapper.h') diff --git a/src/snapper.h b/src/snapper.h index 533a39090..1fb03d704 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -22,7 +22,7 @@ #include "snapped-line.h" struct SnappedConstraints { - std::list points; + std::list points; std::list lines; std::list grid_lines; std::list guide_lines; @@ -50,11 +50,11 @@ public: void setSnapFrom(PointType t, bool s); bool getSnapFrom(PointType t) const; - - void setSnapperTolerance(NR::Coord t); + + void setSnapperTolerance(NR::Coord t); NR::Coord getSnapperTolerance() const; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom) bool getSnapperAlwaysSnap() const; //if true, then the snapper will always snap, regardless of its tolerance - + /** * \return true if this Snapper will snap at least one kind of point. */ @@ -63,14 +63,14 @@ public: void setEnabled(bool s); bool getEnabled() const {return _snap_enabled;} - virtual void freeSnap(SnappedConstraints &sc, - PointType const &t, - NR::Point const &p, - bool const &first_point, - NR::Maybe const &bbox_to_snap, - std::vector const *it, - std::vector *unselected_nodes) const {}; - + virtual void freeSnap(SnappedConstraints &/*sc*/, + PointType const &/*t*/, + NR::Point const &/*p*/, + bool const &/*first_point*/, + NR::Maybe const &/*bbox_to_snap*/, + std::vector const */*it*/, + std::vector */*unselected_nodes*/) const {}; + class ConstraintLine { public: @@ -88,7 +88,7 @@ public: NR::Point getDirection() const { return _direction; } - + private: bool _has_point; @@ -96,22 +96,22 @@ public: NR::Point _direction; }; - virtual void constrainedSnap(SnappedConstraints &sc, - PointType const &t, - NR::Point const &p, - bool const &first_point, - NR::Maybe const &bbox_to_snap, - ConstraintLine const &c, - std::vector const *it) const {}; - + virtual void constrainedSnap(SnappedConstraints &/*sc*/, + PointType const &/*t*/, + NR::Point const &/*p*/, + bool const &/*first_point*/, + NR::Maybe const &/*bbox_to_snap*/, + ConstraintLine const &/*c*/, + std::vector const */*it*/) const {}; + protected: SPNamedView const *_named_view; int _snap_from; ///< bitmap of point types that we will snap from bool _snap_enabled; ///< true if this snapper is enabled, otherwise false - + private: - NR::Coord _snapper_tolerance; ///< snap tolerance in desktop coordinates - // must be private to enforce the usage of getTolerance(), which retrieves + NR::Coord _snapper_tolerance; ///< snap tolerance in desktop coordinates + // must be private to enforce the usage of getTolerance(), which retrieves // the tolerance in screen pixels (making it zoom independent) }; -- cgit v1.2.3