diff options
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/attributecontext.cpp | 2 | ||||
-rw-r--r-- | searchlib/src/vespa/searchlib/common/resultset.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attributecontext.cpp b/searchlib/src/vespa/searchlib/attribute/attributecontext.cpp index df8e7858f5f..6d7d90844bc 100644 --- a/searchlib/src/vespa/searchlib/attribute/attributecontext.cpp +++ b/searchlib/src/vespa/searchlib/attribute/attributecontext.cpp @@ -38,7 +38,7 @@ AttributeContext::AttributeContext(const IAttributeManager & manager) : _cacheLock() { } -AttributeContext::~AttributeContext() { } +AttributeContext::~AttributeContext() = default; const IAttributeVector * AttributeContext::getAttribute(const string & name) const diff --git a/searchlib/src/vespa/searchlib/common/resultset.h b/searchlib/src/vespa/searchlib/common/resultset.h index c647ed82238..60c902b1b12 100644 --- a/searchlib/src/vespa/searchlib/common/resultset.h +++ b/searchlib/src/vespa/searchlib/common/resultset.h @@ -41,7 +41,7 @@ public: void mergeWithBitOverflow(HitRank default_value = default_rank_value); /* isEmpty() is allowed to return false even if bitmap has no hits */ - bool isEmpty() const { return (_bitOverflow == NULL && _elemsUsedInRankedHitsArray == 0); } + bool isEmpty() const { return (_bitOverflow && (_elemsUsedInRankedHitsArray == 0)); } }; } // namespace search |