aboutsummaryrefslogtreecommitdiff
path: root/src/bench
diff options
context:
space:
mode:
authorDaniel Kraft <[email protected]>2018-05-20 09:15:39 +0200
committerDaniel Kraft <[email protected]>2018-05-20 09:15:39 +0200
commit60ebc7da4c2f918c821008088e88aba8ab40d867 (patch)
tree64375d39d60874eb2a16b6c5760f6659eaac2b68 /src/bench
parentMerge #13228: Add script to detect circular dependencies between source modules (diff)
downloaddiscoin-60ebc7da4c2f918c821008088e88aba8ab40d867.tar.xz
discoin-60ebc7da4c2f918c821008088e88aba8ab40d867.zip
trivial: Mark overrides as such.
This trivial change adds the "override" keyword to some methods of subclasses meant to override interface methods. This ensures that any future change to the interface' method signatures which are not correctly mirrored in the subclass will break at compile time with a clear error message, rather than fail at runtime (which is harder to debug).
Diffstat (limited to 'src/bench')
-rw-r--r--src/bench/bench.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bench/bench.h b/src/bench/bench.h
index e15cb8186..5d131c2aa 100644
--- a/src/bench/bench.h
+++ b/src/bench/bench.h
@@ -111,9 +111,9 @@ public:
class ConsolePrinter : public Printer
{
public:
- void header();
- void result(const State& state);
- void footer();
+ void header() override;
+ void result(const State& state) override;
+ void footer() override;
};
// creates box plot with plotly.js
@@ -121,9 +121,9 @@ class PlotlyPrinter : public Printer
{
public:
PlotlyPrinter(std::string plotly_url, int64_t width, int64_t height);
- void header();
- void result(const State& state);
- void footer();
+ void header() override;
+ void result(const State& state) override;
+ void footer() override;
private:
std::string m_plotly_url;