summaryrefslogtreecommitdiffstats
path: root/src/object/sp-switch.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/sp-switch.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/sp-switch.h')
-rw-r--r--src/object/sp-switch.h14
1 files changed, 7 insertions, 7 deletions
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<SPObject*> _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