From: joncruz Date: Wed, 4 Feb 2009 07:33:57 +0000 (+0000) Subject: Fixed dangerous base-class methods that were missing returns by converting them to... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=203a5322596d6e735ce05ac55df06a95ba035011;p=inkscape.git Fixed dangerous base-class methods that were missing returns by converting them to abstract. --- diff --git a/src/snapper.h b/src/snapper.h index fc4b30ba0..49f277411 100644 --- a/src/snapper.h +++ b/src/snapper.h @@ -45,8 +45,8 @@ public: Snapper(SnapManager *sm, ::Geom::Coord const t); virtual ~Snapper() {} - virtual Geom::Coord getSnapperTolerance() const {}; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom) - virtual bool getSnapperAlwaysSnap() const {}; //if true, then the snapper will always snap, regardless of its tolerance + virtual Geom::Coord getSnapperTolerance() const = 0; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom) + virtual bool getSnapperAlwaysSnap() const = 0; //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.