diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-14 22:45:10 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:00 +0000 |
| commit | 7654fc11a6442e6ee2a463d6dee6458c0f53768f (patch) | |
| tree | 7eb16a57b879747842bb0401dfee7fb47cd16f95 /src/object/sp-clippath.h | |
| parent | Fix build issue caused by f09962028d017896279b717a6621a4de772d1b4f on GTK+ <3... (diff) | |
| download | inkscape-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/sp-clippath.h')
| -rw-r--r-- | src/object/sp-clippath.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/object/sp-clippath.h b/src/object/sp-clippath.h index 87b5be92c..e2c60789a 100644 --- a/src/object/sp-clippath.h +++ b/src/object/sp-clippath.h @@ -35,7 +35,7 @@ class DrawingItem; class SPClipPath : public SPObjectGroup { public: SPClipPath(); - virtual ~SPClipPath(); + ~SPClipPath() override; class Reference; @@ -53,17 +53,17 @@ public: Geom::OptRect geometricBounds(Geom::Affine const &transform); protected: - virtual void build(SPDocument* doc, Inkscape::XML::Node* repr); - virtual void release(); + void build(SPDocument* doc, Inkscape::XML::Node* repr) override; + void release() override; - virtual void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref); + void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref) override; - virtual void set(unsigned int key, char const* value); + void set(unsigned int key, char const* value) override; - virtual void update(SPCtx* ctx, unsigned int flags); - virtual void modified(unsigned int flags); + void update(SPCtx* ctx, unsigned int flags) override; + void modified(unsigned int flags) override; - virtual Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags); + Inkscape::XML::Node* write(Inkscape::XML::Document* doc, Inkscape::XML::Node* repr, unsigned int flags) override; }; @@ -81,7 +81,7 @@ protected: * \return false if obj is not a clippath or if obj is a parent of this * reference's owner element. True otherwise. */ - virtual bool _acceptObject(SPObject *obj) const { + bool _acceptObject(SPObject *obj) const override { if (!SP_IS_CLIPPATH(obj)) { return false; } |
