diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-03-29 15:59:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 15:59:29 +0200 |
commit | 55a68fe347b0b551cd3421d014fabcf3be4f525d (patch) | |
tree | e8a015d2755d5fb666ab593941373090a9481809 /searchlib | |
parent | d826275fe2b951ae5cdf26bb5e295d17e2fbaf70 (diff) | |
parent | da37d75e5dad5d7f819329bac3fa17f9bbe370f8 (diff) |
Merge pull request #21868 from vespa-engine/balder/avoid-fieldpathupdate-cp
CloneablePtr -> std::unique_ptr
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/index/docbuilder.cpp | 5 |
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)); } } |