diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-10 15:57:13 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2017-04-10 15:57:13 +0200 |
commit | 294974adea9ad01144d5386d8c0b71cdcbb39918 (patch) | |
tree | c15fad7e537dbc1bf0e76a5a211c110e50653515 /eval | |
parent | f8bfef4eddc54c0f8f8e37a116b7cc24c4abe2bb (diff) |
add override in eval module
Diffstat (limited to 'eval')
-rw-r--r-- | eval/src/tests/eval/function/function_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/eval/src/tests/eval/function/function_test.cpp b/eval/src/tests/eval/function/function_test.cpp index e90525ce2fa..773b3e17d2e 100644 --- a/eval/src/tests/eval/function/function_test.cpp +++ b/eval/src/tests/eval/function/function_test.cpp @@ -374,7 +374,7 @@ TEST("require that Call children can be accessed") { struct MyNodeHandler : public NodeHandler { std::vector<nodes::Node_UP> nodes; - virtual void handle(nodes::Node_UP node) { + virtual void handle(nodes::Node_UP node) override { if (node.get() != nullptr) { nodes.push_back(std::move(node)); } @@ -658,7 +658,8 @@ struct MySymbolExtractor : SymbolExtractor { MySymbolExtractor() : extra(), invoke_count() {} explicit MySymbolExtractor(std::initializer_list<char> extra_in) : extra(extra_in), invoke_count() {} virtual void extract_symbol(const char *pos_in, const char *end_in, - const char *&pos_out, vespalib::string &symbol_out) const + const char *&pos_out, vespalib::string &symbol_out) + const override { ++invoke_count; for (; pos_in < end_in; ++pos_in) { |