summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-02-01 15:21:04 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-02-01 15:21:04 +0000
commit9ece782152a1f06b00a143d9cebf38c553c5a028 (patch)
treea6ab7c9f768399b03e7d5e956f122287198413fd /searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
parent179daa38c12471ec9de4e48ec91865c8a336d8a8 (diff)
Deinline large destructors and clean up some code based on clion hints.
Diffstat (limited to 'searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp')
-rw-r--r--searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp b/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
index 69063f38aeb..4f7a7934d4c 100644
--- a/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
+++ b/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
@@ -55,6 +55,8 @@ using namespace search::queryeval;
struct MySetup : public IFieldLengthInspector {
std::vector<vespalib::string> fields;
std::map<vespalib::string, FieldLengthInfo> field_lengths;
+ MySetup();
+ ~MySetup() override;
MySetup &field(const std::string &name) {
fields.emplace_back(name);
return *this;
@@ -84,6 +86,9 @@ struct MySetup : public IFieldLengthInspector {
};
+MySetup::MySetup() = default;
+MySetup::~MySetup() = default;
+
//-----------------------------------------------------------------------------
struct Index {