aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-05 02:32:06 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-23 02:03:47 +0200
commitb57308e4a134fb6139d2cb52a031d3e7185f16cf (patch)
tree7c31d445e2f76bb737ef90ce29e0e7e6738d6eb1 /vespalib
parent40b8ba5a3f34028d208d4e0dc1b46940d6fe5a47 (diff)
Use override
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/closure.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/vespalib/src/vespa/vespalib/util/closure.h b/vespalib/src/vespa/vespalib/util/closure.h
index 81ea8430609..a494c8d97df 100644
--- a/vespalib/src/vespa/vespalib/util/closure.h
+++ b/vespalib/src/vespa/vespalib/util/closure.h
@@ -102,9 +102,7 @@ class Closure0_2 : public Closure0<R> {
T1 _arg1;
T2 _arg2;
- virtual R call() override
- { return _func(std::move(_arg1), std::move(_arg2)); }
-
+ R call() override { return _func(std::move(_arg1), std::move(_arg2)); }
public:
Closure0_2(Func func, T1 &&arg1, T2 &&arg2)
: _func(func), _arg1(std::move(arg1)), _arg2(std::move(arg2)) {}
@@ -120,8 +118,7 @@ class Closure0_3 : public Closure0<R> {
T2 _arg2;
T3 _arg3;
- virtual R call() override
- { return _func(std::move(_arg1), std::move(_arg2), std::move(_arg3)); }
+ R call() override { return _func(std::move(_arg1), std::move(_arg2), std::move(_arg3)); }
public:
Closure0_3(Func func, T1 &&arg1, T2 &&arg2, T3 &&arg3)