summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-05-23 12:42:22 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-05-23 12:42:22 +0000
commit3a3dbd5c7c2fc19520917f46205c9f987972f5b8 (patch)
tree8c573fa57cd4061e0b146dce1707b304045dac6d
parent4279ea8a82ccf4b6768e2da7f97badd47d4b16ab (diff)
Inline trivial constructor and destructor
-rw-r--r--searchlib/src/vespa/searchlib/attribute/search_context.cpp8
-rw-r--r--searchlib/src/vespa/searchlib/attribute/search_context.h7
2 files changed, 5 insertions, 10 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/search_context.cpp b/searchlib/src/vespa/searchlib/attribute/search_context.cpp
index a0345ddce70..a0208ab787e 100644
--- a/searchlib/src/vespa/searchlib/attribute/search_context.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/search_context.cpp
@@ -10,14 +10,6 @@ using search::queryeval::SearchIterator;
namespace search::attribute {
-SearchContext::SearchContext(const AttributeVector &attr) noexcept
- : _attr(attr),
- _plsc(nullptr)
-{
-}
-
-SearchContext::~SearchContext() = default;
-
unsigned int
SearchContext::approximateHits() const
{
diff --git a/searchlib/src/vespa/searchlib/attribute/search_context.h b/searchlib/src/vespa/searchlib/attribute/search_context.h
index 025b0fdf113..cc55beee216 100644
--- a/searchlib/src/vespa/searchlib/attribute/search_context.h
+++ b/searchlib/src/vespa/searchlib/attribute/search_context.h
@@ -30,7 +30,7 @@ public:
SearchContext(SearchContext&&) noexcept = default;
SearchContext& operator=(const SearchContext&) = delete;
SearchContext& operator=(SearchContext&&) noexcept = delete;
- ~SearchContext() override;
+ ~SearchContext() override = default;
unsigned int approximateHits() const override;
std::unique_ptr<queryeval::SearchIterator> createIterator(fef::TermFieldMatchData* matchData, bool strict) override;
@@ -47,7 +47,10 @@ public:
const AttributeVector& attribute() const { return _attr; }
protected:
- SearchContext(const AttributeVector& attr) noexcept;
+ SearchContext(const AttributeVector& attr) noexcept
+ : _attr(attr),
+ _plsc(nullptr)
+ {}
const AttributeVector& _attr;
attribute::IPostingListSearchContext* _plsc;