summaryrefslogtreecommitdiffstats
path: root/src/xml/simple-document.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/xml/simple-document.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/xml/simple-document.h')
-rw-r--r--src/xml/simple-document.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/xml/simple-document.h b/src/xml/simple-document.h
index 01933076f..078fa16a7 100644
--- a/src/xml/simple-document.h
+++ b/src/xml/simple-document.h
@@ -33,35 +33,35 @@ public:
: SimpleNode(g_quark_from_static_string("xml"), this),
_in_transaction(false), _is_CData(false) {}
- NodeType type() const { return Inkscape::XML::DOCUMENT_NODE; }
+ NodeType type() const override { return Inkscape::XML::DOCUMENT_NODE; }
- bool inTransaction() { return _in_transaction; }
+ bool inTransaction() override { return _in_transaction; }
- void beginTransaction();
- void rollback();
- void commit();
- Inkscape::XML::Event *commitUndoable();
+ void beginTransaction() override;
+ void rollback() override;
+ void commit() override;
+ Inkscape::XML::Event *commitUndoable() override;
- Node *createElement(char const *name);
- Node *createTextNode(char const *content);
- Node *createTextNode(char const *content, bool const is_CData);
- Node *createComment(char const *content);
- Node *createPI(char const *target, char const *content);
+ Node *createElement(char const *name) override;
+ Node *createTextNode(char const *content) override;
+ Node *createTextNode(char const *content, bool const is_CData) override;
+ Node *createComment(char const *content) override;
+ Node *createPI(char const *target, char const *content) override;
- void notifyChildAdded(Node &parent, Node &child, Node *prev);
+ void notifyChildAdded(Node &parent, Node &child, Node *prev) override;
- void notifyChildRemoved(Node &parent, Node &child, Node *prev);
+ void notifyChildRemoved(Node &parent, Node &child, Node *prev) override;
void notifyChildOrderChanged(Node &parent, Node &child,
- Node *old_prev, Node *new_prev);
+ Node *old_prev, Node *new_prev) override;
void notifyContentChanged(Node &node,
Util::ptr_shared old_content,
- Util::ptr_shared new_content);
+ Util::ptr_shared new_content) override;
void notifyAttributeChanged(Node &node, GQuark name,
Util::ptr_shared old_value,
- Util::ptr_shared new_value);
+ Util::ptr_shared new_value) override;
protected:
SimpleDocument(SimpleDocument const &doc)
@@ -69,11 +69,11 @@ protected:
_in_transaction(false),
_is_CData(false){}
- SimpleNode *_duplicate(Document* /*doc*/) const
+ SimpleNode *_duplicate(Document* /*doc*/) const override
{
return new SimpleDocument(*this);
}
- NodeObserver *logger() { return this; }
+ NodeObserver *logger() override { return this; }
private:
bool _in_transaction;