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/inkscape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inkscape.cpp') diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 52072de0b..410376ede 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -99,9 +99,9 @@ public: InkErrorHandler(bool useGui) : Inkscape::ErrorReporter(), _useGui(useGui) {} - virtual ~InkErrorHandler() {} + ~InkErrorHandler() override {} - virtual void handleError( Glib::ustring const& primary, Glib::ustring const& secondary ) const + void handleError( Glib::ustring const& primary, Glib::ustring const& secondary ) const override { if (_useGui) { Gtk::MessageDialog err(primary, false, Gtk::MESSAGE_WARNING, Gtk::BUTTONS_OK, true); -- cgit v1.2.3