summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2018-04-19 13:29:56 +0000
committerTor Egge <Tor.Egge@oath.com>2018-04-20 08:48:48 +0000
commite3f7a936e403748ebb24d83490886b65bcd81ac7 (patch)
treef74356ba682fe0cd52cd29ec99ca382ae3785088 /searchcore
parent444798eaa387e99142af9dd2cf8fee64dec8d2cd (diff)
Use forward declared ReferenceAttribute.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_test.cpp2
-rw-r--r--searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp
index 6e8191e7d40..4a9d1b31c8e 100644
--- a/searchcore/src/tests/proton/attribute/attribute_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp
@@ -747,7 +747,7 @@ ImportedAttributeVector::SP
createImportedAttribute(const vespalib::string &name)
{
auto result = ImportedAttributeVectorFactory::create(name,
- ReferenceAttribute::SP(),
+ std::shared_ptr<ReferenceAttribute>(),
AttributeVector::SP(),
std::shared_ptr<search::IDocumentMetaStoreContext>(),
true);
diff --git a/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp b/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp
index 1bee7a79192..e905354a69f 100644
--- a/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp
+++ b/searchcore/src/tests/proton/attribute/imported_attributes_context/imported_attributes_context_test.cpp
@@ -9,6 +9,7 @@ LOG_SETUP("imported_attributes_context_test");
#include <vespa/searchlib/attribute/attributefactory.h>
#include <vespa/searchlib/attribute/imported_attribute_vector.h>
#include <vespa/searchlib/attribute/imported_attribute_vector_factory.h>
+#include <vespa/searchlib/attribute/reference_attribute.h>
#include <vespa/searchlib/test/mock_gid_to_lid_mapping.h>
#include <future>
@@ -23,7 +24,7 @@ using search::attribute::ReferenceAttribute;
using search::attribute::test::MockGidToLidMapperFactory;
using generation_t = AttributeVector::generation_t;
-ReferenceAttribute::SP
+std::shared_ptr<ReferenceAttribute>
createReferenceAttribute(const vespalib::string &name)
{
auto refAttr = std::make_shared<ReferenceAttribute>(name, Config(BasicType::REFERENCE));