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/xml/text-node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xml/text-node.h') diff --git a/src/xml/text-node.h b/src/xml/text-node.h index 4d71203a5..ca7880acb 100644 --- a/src/xml/text-node.h +++ b/src/xml/text-node.h @@ -43,11 +43,11 @@ struct TextNode : public SimpleNode { _is_CData = other._is_CData; } - Inkscape::XML::NodeType type() const { return Inkscape::XML::TEXT_NODE; } + Inkscape::XML::NodeType type() const override { return Inkscape::XML::TEXT_NODE; } bool is_CData() const { return _is_CData; } protected: - SimpleNode *_duplicate(Document* doc) const { return new TextNode(*this, doc); } + SimpleNode *_duplicate(Document* doc) const override { return new TextNode(*this, doc); } bool _is_CData; }; -- cgit v1.2.3