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/util/units.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util/units.cpp') 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; -- cgit v1.2.3