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/live_effects/parameter/array.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/live_effects/parameter/array.h') diff --git a/src/live_effects/parameter/array.h b/src/live_effects/parameter/array.h index b5ee8b5cf..be19889b3 100644 --- a/src/live_effects/parameter/array.h +++ b/src/live_effects/parameter/array.h @@ -37,7 +37,7 @@ public: } - virtual ~ArrayParam() { + ~ArrayParam() override { }; @@ -45,11 +45,11 @@ public: return _vector; } - virtual Gtk::Widget * param_newWidget() { + Gtk::Widget * param_newWidget() override { return NULL; } - virtual bool param_readSVGValue(const gchar * strvalue) { + bool param_readSVGValue(const gchar * strvalue) override { _vector.clear(); gchar ** strarray = g_strsplit(strvalue, "|", 0); gchar ** iter = strarray; @@ -60,14 +60,14 @@ public: g_strfreev (strarray); return true; } - virtual void param_update_default(const gchar * default_value){}; - virtual gchar * param_getSVGValue() const { + void param_update_default(const gchar * default_value) override{}; + gchar * param_getSVGValue() const override { Inkscape::SVGOStringStream os; writesvg(os, _vector); return g_strdup(os.str().c_str()); } - virtual gchar * param_getDefaultSVGValue() const { + gchar * param_getDefaultSVGValue() const override { return g_strdup(""); } @@ -75,7 +75,7 @@ public: _vector = new_vector; } - void param_set_default() { + void param_set_default() override { param_setValue( std::vector(_default_size) ); } -- cgit v1.2.3