summaryrefslogtreecommitdiffstats
path: root/searchlib/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-03-29 09:32:13 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-03-29 09:42:53 +0000
commitda37d75e5dad5d7f819329bac3fa17f9bbe370f8 (patch)
tree7daf06a5c021e507b4c83dbdf90dd0144ce304b9 /searchlib/src
parent407db61990785f6812a0db28cdbfeb4dc8bc1308 (diff)
CloneablePtr -> std::unique_ptr
Diffstat (limited to 'searchlib/src')
-rw-r--r--searchlib/src/vespa/searchlib/index/docbuilder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/searchlib/src/vespa/searchlib/index/docbuilder.cpp b/searchlib/src/vespa/searchlib/index/docbuilder.cpp
index 0792dd7be61..d4bf9e86c74 100644
--- a/searchlib/src/vespa/searchlib/index/docbuilder.cpp
+++ b/searchlib/src/vespa/searchlib/index/docbuilder.cpp
@@ -154,11 +154,10 @@ using namespace docbuilderkludge;
namespace {
-Annotation::UP
+std::unique_ptr<Annotation>
makeTokenType(linguistics::TokenType type)
{
- return makeUP(new Annotation(*AnnotationType::TOKEN_TYPE,
- makeUP(new IntFieldValue(type))));
+ return std::make_unique<Annotation>(*AnnotationType::TOKEN_TYPE, std::make_unique<IntFieldValue>(type));
}
}