summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-07-20 10:22:24 +0200
committerHenning Baldersheim <balder@oath.com>2018-07-20 10:22:24 +0200
commit483b3451c9f1fc5453c69871a187b97cde5b3bdc (patch)
treeb29f932453b6c8f31b15c2073032dda90b4668d9 /searchlib
parent845ffd3675493028e8470e6dba288679cf6069fa (diff)
Use override keyword
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/blueprint.cpp2
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/blueprint.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp b/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp
index 65a9eaf3e15..1ad4d60bc7f 100644
--- a/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp
+++ b/searchlib/src/vespa/searchlib/queryeval/blueprint.cpp
@@ -18,7 +18,7 @@ namespace search::queryeval {
void maybe_eliminate_self(Blueprint* &self, Blueprint::UP replacement) {
// replace with replacement
- if (replacement.get() != nullptr) {
+ if (replacement) {
Blueprint *tmp = replacement.release();
tmp->setParent(self->getParent());
tmp->setSourceId(self->getSourceId());
diff --git a/searchlib/src/vespa/searchlib/queryeval/blueprint.h b/searchlib/src/vespa/searchlib/queryeval/blueprint.h
index bcd6217fe2a..165f592867a 100644
--- a/searchlib/src/vespa/searchlib/queryeval/blueprint.h
+++ b/searchlib/src/vespa/searchlib/queryeval/blueprint.h
@@ -240,7 +240,7 @@ protected:
public:
typedef std::vector<size_t> IndexList;
IntermediateBlueprint();
- virtual ~IntermediateBlueprint();
+ ~IntermediateBlueprint() override;
void setDocIdLimit(uint32_t limit) override final;
@@ -285,7 +285,7 @@ protected:
LeafBlueprint(const FieldSpecBaseList &fields, bool allow_termwise_eval);
public:
- ~LeafBlueprint();
+ ~LeafBlueprint() override;
const State &getState() const override final { return _state; }
void setDocIdLimit(uint32_t limit) override final { Blueprint::setDocIdLimit(limit); }
void fetchPostings(bool strict) override;