diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-11 12:26:55 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-05-11 12:26:55 +0000 |
commit | 1f84a75a3c5f4b3056d8b263c3bf053db0904709 (patch) | |
tree | f70dbf9fa0404fb71a2c6cb08a594d2624cace47 /searchcore | |
parent | 579fb87fca4711b98a68aecb8b2efaacbeb2910f (diff) |
Move the fieldspec base vector.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp b/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp index 2d3323949d1..eee2b7a7203 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp @@ -2,7 +2,6 @@ #include "blueprintbuilder.h" #include "querynodes.h" -#include "termdatafromnode.h" #include "same_element_builder.h" #include <vespa/searchcorespi/index/indexsearchable.h> #include <vespa/searchlib/query/tree/customtypevisitor.h> @@ -25,7 +24,7 @@ struct Mixer { void addAttribute(Blueprint::UP attr) { if (attributes.get() == 0) { - attributes.reset(new OrBlueprint()); + attributes = std::make_unique<OrBlueprint>(); } attributes->addChild(std::move(attr)); } @@ -92,7 +91,7 @@ private: for (size_t i = 0; i < n.numFields(); ++i) { specs.add(n.field(i).fieldSpec()); } - EquivBlueprint *eq = new EquivBlueprint(specs, n.children_mdl); + EquivBlueprint *eq = new EquivBlueprint(std::move(specs), n.children_mdl); _result.reset(eq); for (size_t i = 0; i < n.getChildren().size(); ++i) { search::query::Node &node = *n.getChildren()[i]; |