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/xml/event.cpp | |
| 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/xml/event.cpp')
| -rw-r--r-- | src/xml/event.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/xml/event.cpp b/src/xml/event.cpp index 54f55d5c3..d0ba10e08 100644 --- a/src/xml/event.cpp +++ b/src/xml/event.cpp @@ -92,30 +92,30 @@ public: return singleton; } - void notifyChildAdded(Node &parent, Node &child, Node *ref) { + void notifyChildAdded(Node &parent, Node &child, Node *ref) override { parent.addChild(&child, ref); } - void notifyChildRemoved(Node &parent, Node &child, Node */*old_ref*/) { + void notifyChildRemoved(Node &parent, Node &child, Node */*old_ref*/) override { parent.removeChild(&child); } void notifyChildOrderChanged(Node &parent, Node &child, - Node */*old_ref*/, Node *new_ref) + Node */*old_ref*/, Node *new_ref) override { parent.changeOrder(&child, new_ref); } void notifyAttributeChanged(Node &node, GQuark name, Inkscape::Util::ptr_shared /*old_value*/, - Inkscape::Util::ptr_shared new_value) + Inkscape::Util::ptr_shared new_value) override { node.setAttribute(g_quark_to_string(name), new_value); } void notifyContentChanged(Node &node, Inkscape::Util::ptr_shared /*old_value*/, - Inkscape::Util::ptr_shared new_value) + Inkscape::Util::ptr_shared new_value) override { node.setContent(new_value); } @@ -446,23 +446,23 @@ public: } } - void notifyChildAdded(Node &parent, Node &child, Node *ref) { + void notifyChildAdded(Node &parent, Node &child, Node *ref) override { g_warning("Event: Added %s to %s after %s", node_to_string(parent).c_str(), node_to_string(child).c_str(), ref_to_string(ref).c_str()); } - void notifyChildRemoved(Node &parent, Node &child, Node */*ref*/) { + void notifyChildRemoved(Node &parent, Node &child, Node */*ref*/) override { g_warning("Event: Removed %s from %s", node_to_string(parent).c_str(), node_to_string(child).c_str()); } void notifyChildOrderChanged(Node &parent, Node &child, - Node */*old_ref*/, Node *new_ref) + Node */*old_ref*/, Node *new_ref) override { g_warning("Event: Moved %s after %s in %s", node_to_string(child).c_str(), ref_to_string(new_ref).c_str(), node_to_string(parent).c_str()); } void notifyAttributeChanged(Node &node, GQuark name, Inkscape::Util::ptr_shared /*old_value*/, - Inkscape::Util::ptr_shared new_value) + Inkscape::Util::ptr_shared new_value) override { if (new_value) { g_warning("Event: Set attribute %s to \"%s\" on %s", g_quark_to_string(name), new_value.pointer(), node_to_string(node).c_str()); @@ -473,7 +473,7 @@ public: void notifyContentChanged(Node &node, Inkscape::Util::ptr_shared /*old_value*/, - Inkscape::Util::ptr_shared new_value) + Inkscape::Util::ptr_shared new_value) override { if (new_value) { g_warning("Event: Set content of %s to \"%s\"", node_to_string(node).c_str(), new_value.pointer()); |
