summaryrefslogtreecommitdiffstats
path: root/searchcore/src
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-10-15 10:37:22 +0000
committerArne Juul <arnej@verizonmedia.com>2020-10-15 11:22:15 +0000
commitd78c40cb1330fea628684b9aaa8aa993fd70eecc (patch)
tree363455ec2a4feea9caca72c70a8880caa5825062 /searchcore/src
parent08393e9e14635f1c6a6c84650c25023a0db7ed0b (diff)
simplify
Diffstat (limited to 'searchcore/src')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_test.cpp3
-rw-r--r--searchcore/src/tests/proton/common/attribute_updater/attribute_updater_test.cpp3
-rw-r--r--searchcore/src/tests/proton/docsummary/docsummary.cpp3
-rw-r--r--searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp3
4 files changed, 4 insertions, 8 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp
index 00153402fc9..b30420ead24 100644
--- a/searchcore/src/tests/proton/attribute/attribute_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp
@@ -641,8 +641,7 @@ TEST_F(FilterAttributeManagerTest, readable_attribute_vector_filters_attributes)
namespace {
Value::UP make_tensor(const TensorSpec &spec) {
- auto tensor = EngineOrFactory::get().from_spec(spec);
- return tensor;
+ return EngineOrFactory::get().from_spec(spec);
}
const vespalib::string sparse_tensor = "tensor(x{},y{})";
diff --git a/searchcore/src/tests/proton/common/attribute_updater/attribute_updater_test.cpp b/searchcore/src/tests/proton/common/attribute_updater/attribute_updater_test.cpp
index 61b5f9cb847..a41672569ce 100644
--- a/searchcore/src/tests/proton/common/attribute_updater/attribute_updater_test.cpp
+++ b/searchcore/src/tests/proton/common/attribute_updater/attribute_updater_test.cpp
@@ -442,8 +442,7 @@ struct TensorFixture : public Fixture {
}
void assertTensor(const TensorSpec &expSpec) {
- auto engine = EngineOrFactory::get();
- auto actual = engine.to_spec(*attribute->getTensor(1));
+ auto actual = EngineOrFactory::get().to_spec(*attribute->getTensor(1));
EXPECT_EQUAL(expSpec, actual);
}
};
diff --git a/searchcore/src/tests/proton/docsummary/docsummary.cpp b/searchcore/src/tests/proton/docsummary/docsummary.cpp
index 7e220cd0165..a4d0f007031 100644
--- a/searchcore/src/tests/proton/docsummary/docsummary.cpp
+++ b/searchcore/src/tests/proton/docsummary/docsummary.cpp
@@ -139,8 +139,7 @@ getDocTypeName()
}
vespalib::eval::Value::UP make_tensor(const TensorSpec &spec) {
- auto tensor = EngineOrFactory::get().from_spec(spec);
- return tensor;
+ return EngineOrFactory::get().from_spec(spec);
}
vespalib::string asVstring(vespalib::Memory str) {
diff --git a/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp b/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp
index 6309f96b747..58b7838bf35 100644
--- a/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp
+++ b/searchcore/src/tests/proton/docsummary/summaryfieldconverter_test.cpp
@@ -677,8 +677,7 @@ Test::requireThatPredicateIsPrinted()
}
Value::UP make_tensor(const TensorSpec &spec) {
- auto tensor = EngineOrFactory::get().from_spec(spec);
- return tensor;
+ return EngineOrFactory::get().from_spec(spec);
}
void