summaryrefslogtreecommitdiffstats
path: root/src/util
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/util
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/util')
-rw-r--r--src/util/expression-evaluator.h4
-rw-r--r--src/util/units.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/util/expression-evaluator.h b/src/util/expression-evaluator.h
index ace27339f..c912f248b 100644
--- a/src/util/expression-evaluator.h
+++ b/src/util/expression-evaluator.h
@@ -177,9 +177,9 @@ public:
msgstr = os.str();
}
- virtual ~EvaluatorException() throw() {} // necessary to destroy the string object!!!
+ ~EvaluatorException() throw() override {} // necessary to destroy the string object!!!
- virtual const char *what() const throw () {
+ const char *what() const throw () override {
return msgstr.c_str();
}
protected:
diff --git a/src/util/units.cpp b/src/util/units.cpp
index cf4bfd146..cd7b66ba8 100644
--- a/src/util/units.cpp
+++ b/src/util/units.cpp
@@ -129,12 +129,12 @@ public:
typedef Glib::Markup::ParseContext Ctx;
UnitParser(UnitTable *table);
- virtual ~UnitParser() {}
+ ~UnitParser() override {}
protected:
- virtual void on_start_element(Ctx &ctx, Glib::ustring const &name, AttrMap const &attrs);
- virtual void on_end_element(Ctx &ctx, Glib::ustring const &name);
- virtual void on_text(Ctx &ctx, Glib::ustring const &text);
+ void on_start_element(Ctx &ctx, Glib::ustring const &name, AttrMap const &attrs) override;
+ void on_end_element(Ctx &ctx, Glib::ustring const &name) override;
+ void on_text(Ctx &ctx, Glib::ustring const &text) override;
public:
UnitTable *tbl;