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/trace/potrace/inkscape-potrace.h | 8 ++++---- src/trace/trace.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/trace') diff --git a/src/trace/potrace/inkscape-potrace.h b/src/trace/potrace/inkscape-potrace.h index e8e654973..c3600f6bb 100644 --- a/src/trace/potrace/inkscape-potrace.h +++ b/src/trace/potrace/inkscape-potrace.h @@ -53,7 +53,7 @@ class PotraceTracingEngine : public TracingEngine /** * */ - ~PotraceTracingEngine(); + ~PotraceTracingEngine() override; /** @@ -219,13 +219,13 @@ class PotraceTracingEngine : public TracingEngine * return the path data that is compatible with the d="" attribute * of an SVG element. */ - virtual std::vector trace( - Glib::RefPtr pixbuf); + std::vector trace( + Glib::RefPtr pixbuf) override; /** * Abort the thread that is executing getPathDataFromPixbuf() */ - virtual void abort(); + void abort() override; /** * diff --git a/src/trace/trace.cpp b/src/trace/trace.cpp index 5595b2544..bd52d7a57 100644 --- a/src/trace/trace.cpp +++ b/src/trace/trace.cpp @@ -164,14 +164,14 @@ public: /** * */ - virtual ~TraceSioxObserver () + ~TraceSioxObserver () override { } /** * Informs the observer how much has been completed. * Return false if the processing should be aborted. */ - virtual bool progress(float /*percentCompleted*/) + bool progress(float /*percentCompleted*/) override { //Tracer *tracer = (Tracer *)context; //## Allow the GUI to update @@ -185,7 +185,7 @@ public: * Send an error string to the Observer. Processing will * be halted. */ - virtual void error(const std::string &/*msg*/) + void error(const std::string &/*msg*/) override { //Tracer *tracer = (Tracer *)context; } -- cgit v1.2.3