From 7654fc11a6442e6ee2a463d6dee6458c0f53768f Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 00:45:10 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-override=20p?= =?UTF-8?q?ass.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier. --- src/object/sp-switch.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/object/sp-switch.h') diff --git a/src/object/sp-switch.h b/src/object/sp-switch.h index 57ce8b236..b1f17305d 100644 --- a/src/object/sp-switch.h +++ b/src/object/sp-switch.h @@ -24,12 +24,12 @@ class SPSwitch : public SPGroup { public: SPSwitch(); - virtual ~SPSwitch(); + ~SPSwitch() override; void resetChildEvaluated() { _reevaluate(); } std::vector _childList(bool add_ref, SPObject::Action action); - virtual void _showChildren (Inkscape::Drawing &drawing, Inkscape::DrawingItem *ai, unsigned int key, unsigned int flags); + void _showChildren (Inkscape::Drawing &drawing, Inkscape::DrawingItem *ai, unsigned int key, unsigned int flags) override; SPObject *_evaluateFirst(); void _reevaluate(bool add_to_arena = false); @@ -39,11 +39,11 @@ public: SPObject *_cached_item; sigc::connection _release_connection; - virtual void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref); - virtual void remove_child(Inkscape::XML::Node *child); - virtual void order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref); - virtual const char* displayName() const; - virtual gchar *description() const; + void child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* ref) override; + void remove_child(Inkscape::XML::Node *child) override; + void order_changed(Inkscape::XML::Node *child, Inkscape::XML::Node *old_ref, Inkscape::XML::Node *new_ref) override; + const char* displayName() const override; + gchar *description() const override; }; #endif -- cgit v1.2.3