summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching/matching_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/matching/matching_test.cpp')
-rw-r--r--searchcore/src/tests/proton/matching/matching_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp
index 02506afa709..6dd8a93bcbd 100644
--- a/searchcore/src/tests/proton/matching/matching_test.cpp
+++ b/searchcore/src/tests/proton/matching/matching_test.cpp
@@ -174,7 +174,7 @@ struct MyWorld {
// attribute context
{
- SingleInt32ExtAttribute *attr = new SingleInt32ExtAttribute("a1");
+ auto attr = std::make_shared<SingleInt32ExtAttribute>("a1");
AttributeVector::DocId docid(0);
for (uint32_t i = 0; i < NUM_DOCS; ++i) {
attr->addDoc(docid);
@@ -184,7 +184,7 @@ struct MyWorld {
attributeContext.add(attr);
}
{
- auto *attr = new SingleInt32ExtAttribute("a2");
+ auto attr = std::make_shared<SingleInt32ExtAttribute>("a2");
AttributeVector::DocId docid(0);
for (uint32_t i = 0; i < NUM_DOCS; ++i) {
attr->addDoc(docid);
@@ -194,7 +194,7 @@ struct MyWorld {
attributeContext.add(attr);
}
{
- auto *attr = new SingleInt32ExtAttribute("a3");
+ auto attr = std::make_shared<SingleInt32ExtAttribute>("a3");
AttributeVector::DocId docid(0);
for (uint32_t i = 0; i < NUM_DOCS; ++i) {
attr->addDoc(docid);