diff options
author | Henning Baldersheim <balder@oath.com> | 2018-08-28 15:33:37 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-08-28 15:33:37 +0200 |
commit | 7b6562b9b1e9da14386118826e7936ff5b8b5788 (patch) | |
tree | 07e0f98175dae74dd90120ff94d023aa7d72e617 /searchlib/src/tests/attribute | |
parent | 60d9e3beca7ebeca83ac5fd96f1950ba4578bfc9 (diff) |
shared_ptr -> unique_ptr
Diffstat (limited to 'searchlib/src/tests/attribute')
-rw-r--r-- | searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp | 4 | ||||
-rw-r--r-- | searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp b/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp index f5f00993f7d..ebd8a1014b2 100644 --- a/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp +++ b/searchlib/src/tests/attribute/searchable/attribute_searchable_adapter_test.cpp @@ -122,7 +122,7 @@ public: return IAttributeContext::UP(); } - void asyncForAttribute(const vespalib::string &name, std::shared_ptr<IAttributeFunctor> func) const override; + void asyncForAttribute(const vespalib::string &name, std::unique_ptr<IAttributeFunctor> func) const override; }; struct Result { @@ -180,7 +180,7 @@ MyAttributeManager::MyAttributeManager(AttributeVector::SP attr) MyAttributeManager::~MyAttributeManager() = default; void -MyAttributeManager::asyncForAttribute(const vespalib::string &, std::shared_ptr<IAttributeFunctor>) const { +MyAttributeManager::asyncForAttribute(const vespalib::string &, std::unique_ptr<IAttributeFunctor>) const { } diff --git a/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp b/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp index 7161442df8b..d0a04e2a007 100644 --- a/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp +++ b/searchlib/src/tests/attribute/searchable/attributeblueprint_test.cpp @@ -78,7 +78,7 @@ public: return IAttributeContext::UP(); } - void asyncForAttribute(const vespalib::string &, std::shared_ptr<IAttributeFunctor>) const override { + void asyncForAttribute(const vespalib::string &, std::unique_ptr<IAttributeFunctor>) const override { assert(!"Not implemented"); } }; |