summaryrefslogtreecommitdiffstats
path: root/src/object-snapper.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-14 22:45:10 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:00 +0000
commit7654fc11a6442e6ee2a463d6dee6458c0f53768f (patch)
tree7eb16a57b879747842bb0401dfee7fb47cd16f95 /src/object-snapper.h
parentFix build issue caused by f09962028d017896279b717a6621a4de772d1b4f on GTK+ <3... (diff)
downloadinkscape-7654fc11a6442e6ee2a463d6dee6458c0f53768f.tar.gz
inkscape-7654fc11a6442e6ee2a463d6dee6458c0f53768f.zip
Run clang-tidy’s modernize-use-override pass.
This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
Diffstat (limited to 'src/object-snapper.h')
-rw-r--r--src/object-snapper.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/object-snapper.h b/src/object-snapper.h
index 8cffd147e..58cb3b3a4 100644
--- a/src/object-snapper.h
+++ b/src/object-snapper.h
@@ -30,32 +30,32 @@ class ObjectSnapper : public Snapper
public:
ObjectSnapper(SnapManager *sm, Geom::Coord const d);
- ~ObjectSnapper();
+ ~ObjectSnapper() override;
/**
* @return true if this Snapper will snap at least one kind of point.
*/
- bool ThisSnapperMightSnap() const;
+ bool ThisSnapperMightSnap() const override;
/**
* @return Snap tolerance (desktop coordinates); depends on current zoom so that it's always the same in screen pixels.
*/
- Geom::Coord getSnapperTolerance() const; //returns the tolerance of the snapper in screen pixels (i.e. independent of zoom)
+ Geom::Coord getSnapperTolerance() const override; //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
+ bool getSnapperAlwaysSnap() const override; //if true, then the snapper will always snap, regardless of its tolerance
void freeSnap(IntermSnapResults &isr,
Inkscape::SnapCandidatePoint const &p,
Geom::OptRect const &bbox_to_snap,
std::vector<SPItem const *> const *it,
- std::vector<SnapCandidatePoint> *unselected_nodes) const;
+ std::vector<SnapCandidatePoint> *unselected_nodes) const override;
void constrainedSnap(IntermSnapResults &isr,
Inkscape::SnapCandidatePoint const &p,
Geom::OptRect const &bbox_to_snap,
SnapConstraint const &c,
std::vector<SPItem const *> const *it,
- std::vector<SnapCandidatePoint> *unselected_nodes) const;
+ std::vector<SnapCandidatePoint> *unselected_nodes) const override;
private:
//store some lists of candidates, points and paths, so we don't have to rebuild them for each point we want to snap