diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-26 09:59:04 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-26 10:38:19 +0000 |
commit | 8a87ce9b8880733cde11b3503cba5742e4ebf9b5 (patch) | |
tree | 0b958d8565f1d139cfc59510f1596bd02fa5d4f1 /searchcore | |
parent | 25b997ae63728660e5e0d18f9f3965a392245b8d (diff) |
Include config in cpp file.
Diffstat (limited to 'searchcore')
3 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp index 2b3f1c56ae1..a49a5e52743 100644 --- a/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp +++ b/searchcore/src/tests/proton/attribute/attribute_manager/attribute_manager_test.cpp @@ -138,7 +138,7 @@ struct ImportedAttributesRepoBuilder { ImportedAttributesRepo::UP _repo; ImportedAttributesRepoBuilder() : _repo(std::make_unique<ImportedAttributesRepo>()) {} void add(const vespalib::string &name) { - auto refAttr = std::make_shared<ReferenceAttribute>(name + "_ref", AVConfig(BasicType::REFERENCE)); + auto refAttr = std::make_shared<ReferenceAttribute>(name + "_ref"); refAttr->setGidToLidMapperFactory(std::make_shared<MockGidToLidMapperFactory>()); auto targetAttr = search::AttributeFactory::createAttribute(name + "_target", INT32_SINGLE); auto documentMetaStore = std::shared_ptr<search::IDocumentMetaStoreContext>(); 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 0a6c38b4209..c52978261a7 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 @@ -31,7 +31,7 @@ using generation_t = AttributeVector::generation_t; std::shared_ptr<ReferenceAttribute> createReferenceAttribute(const vespalib::string &name) { - auto refAttr = std::make_shared<ReferenceAttribute>(name, Config(BasicType::REFERENCE)); + auto refAttr = std::make_shared<ReferenceAttribute>(name); refAttr->setGidToLidMapperFactory(std::make_shared<MockGidToLidMapperFactory>()); return refAttr; } diff --git a/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp b/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp index 4ee245c697d..edd987ce841 100644 --- a/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp +++ b/searchcore/src/tests/proton/reference/document_db_reference_resolver/document_db_reference_resolver_test.cpp @@ -121,7 +121,7 @@ struct MyAttributeManager : public MockAttributeManager { addAttribute(name, AttributeFactory::createAttribute(name, Config(BasicType::INT32))); } void addReferenceAttribute(const vespalib::string &name) { - addAttribute(name, std::make_shared<ReferenceAttribute>(name, Config(BasicType::REFERENCE))); + addAttribute(name, std::make_shared<ReferenceAttribute>(name)); } const ReferenceAttribute *getReferenceAttribute(const vespalib::string &name) const { AttributeGuard::UP guard = getAttribute(name); |