summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-04-20 12:38:21 +0200
committerHenning Baldersheim <balder@oath.com>2018-04-20 12:38:21 +0200
commit06bf20093e3f2e04827d3d86062978ed00dc76a9 (patch)
tree5da73eefe0ec8119e013f34ffbb8e1236745593a /searchlib
parent7a3834a9373da78e2883fcac78a02f6b78e5a502 (diff)
Deinline
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/fef/test/CMakeLists.txt1
-rw-r--r--searchlib/src/vespa/searchlib/fef/test/attribute_map.cpp9
-rw-r--r--searchlib/src/vespa/searchlib/fef/test/attribute_map.h3
3 files changed, 12 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/fef/test/CMakeLists.txt b/searchlib/src/vespa/searchlib/fef/test/CMakeLists.txt
index 5f454fa64b2..dd6fda7fdf8 100644
--- a/searchlib/src/vespa/searchlib/fef/test/CMakeLists.txt
+++ b/searchlib/src/vespa/searchlib/fef/test/CMakeLists.txt
@@ -1,6 +1,7 @@
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
vespa_add_library(searchlib_fef_test OBJECT
SOURCES
+ attribute_map.cpp
dummy_dependency_handler.cpp
featuretest.cpp
ftlib.cpp
diff --git a/searchlib/src/vespa/searchlib/fef/test/attribute_map.cpp b/searchlib/src/vespa/searchlib/fef/test/attribute_map.cpp
new file mode 100644
index 00000000000..b0bd9d2229f
--- /dev/null
+++ b/searchlib/src/vespa/searchlib/fef/test/attribute_map.cpp
@@ -0,0 +1,9 @@
+// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+#include "attribute_map.h"
+
+namespace search::fef::test {
+
+AttributeMap::~AttributeMap() = default;
+
+}
diff --git a/searchlib/src/vespa/searchlib/fef/test/attribute_map.h b/searchlib/src/vespa/searchlib/fef/test/attribute_map.h
index aadca263722..0f274fb77b8 100644
--- a/searchlib/src/vespa/searchlib/fef/test/attribute_map.h
+++ b/searchlib/src/vespa/searchlib/fef/test/attribute_map.h
@@ -1,4 +1,4 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "mock_attribute_context.h"
#include <vespa/searchcommon/attribute/iattributecontext.h>
@@ -23,6 +23,7 @@ class AttributeMap {
std::map<vespalib::string, std::unique_ptr<attribute::AttributeReadGuard>> _guards;
public:
using IAttributeVector = attribute::IAttributeVector;
+ ~AttributeMap();
void add(std::shared_ptr<attribute::IAttributeVector> attr) {
_attributes.emplace(attr->getName(), std::move(attr));