summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
index c2d3da1b4f6..c3b117f300a 100644
--- a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp
@@ -7,6 +7,7 @@
#include <vespa/searchcore/proton/test/documentdb_config_builder.h>
#include <vespa/vespalib/testkit/testapp.h>
#include <vespa/config-summary.h>
+#include <vespa/document/config/documenttypes_config_fwd.h>
#include <vespa/document/repo/configbuilder.h>
#include <vespa/document/repo/documenttyperepo.h>
#include <vespa/document/datatype/datatype.h>
@@ -71,13 +72,13 @@ public:
return *this;
}
MyConfigBuilder &addRankingExpression() {
- _builder.rankingExpressions(make_shared<RankingExpressions>(std::move(RankingExpressions().add("my_expr", "my_file"))));
+ auto expr_list = RankingExpressions().add("my_expr", "my_file");
+ _builder.rankingExpressions(make_shared<RankingExpressions>(expr_list));
return *this;
}
MyConfigBuilder &addOnnxModel() {
- OnnxModels::Vector models;
- models.emplace_back("my_model_name", "my_model_file");
- _builder.onnxModels(make_shared<OnnxModels>(std::move(models)));
+ OnnxModels::Vector models = {{"my_model_name", "my_model_file"}};
+ _builder.onnxModels(make_shared<OnnxModels>(models));
return *this;
}
MyConfigBuilder &addImportedField() {
@@ -168,7 +169,7 @@ struct DelayAttributeAspectFixture {
Schema::SP schema;
ConfigSP attrCfg;
ConfigSP noAttrCfg;
- explicit DelayAttributeAspectFixture(bool hasDocField)
+ DelayAttributeAspectFixture(bool hasDocField)
: schema(make_shared<Schema>()),
attrCfg(),
noAttrCfg()