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/ui/interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/interface.cpp') diff --git a/src/ui/interface.cpp b/src/ui/interface.cpp index 4ae0f4a6d..19dddf2c3 100644 --- a/src/ui/interface.cpp +++ b/src/ui/interface.cpp @@ -770,7 +770,7 @@ public: Observer("/options/maxrecentdocuments/value"), _rm(recent_menu) {} - virtual void notify(Inkscape::Preferences::Entry const &e) { + void notify(Inkscape::Preferences::Entry const &e) override { gtk_recent_chooser_set_limit(GTK_RECENT_CHOOSER(_rm), e.getInt()); // hack: the recent menu doesn't repopulate after changing the limit, so we force it g_signal_emit_by_name((gpointer) gtk_recent_manager_get_default(), "changed"); -- cgit v1.2.3