summaryrefslogtreecommitdiffstats
path: root/src/trace
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-14 22:45:10 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:00 +0000
commit7654fc11a6442e6ee2a463d6dee6458c0f53768f (patch)
tree7eb16a57b879747842bb0401dfee7fb47cd16f95 /src/trace
parentFix build issue caused by f09962028d017896279b717a6621a4de772d1b4f on GTK+ <3... (diff)
downloadinkscape-7654fc11a6442e6ee2a463d6dee6458c0f53768f.tar.gz
inkscape-7654fc11a6442e6ee2a463d6dee6458c0f53768f.zip
Run clang-tidy’s modernize-use-override pass.
This adds the override specifier on all methods which override a virtual method, whether they were already virtual or missing this specifier.
Diffstat (limited to 'src/trace')
-rw-r--r--src/trace/potrace/inkscape-potrace.h8
-rw-r--r--src/trace/trace.cpp6
2 files changed, 7 insertions, 7 deletions
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 <path> element.
*/
- virtual std::vector<TracingEngineResult> trace(
- Glib::RefPtr<Gdk::Pixbuf> pixbuf);
+ std::vector<TracingEngineResult> trace(
+ Glib::RefPtr<Gdk::Pixbuf> 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;
}