summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-05-13 12:02:20 +0000
committerArne Juul <arnej@verizonmedia.com>2020-05-13 12:02:20 +0000
commit666512148e0c7a05ceb2de1ec471400fb719534a (patch)
tree4323f053478a958b55e1df437fd00d84b12b80d0 /searchlib
parent5319a2c4c0614d8fd1dd635a29a92922fd73d0e7 (diff)
use auto
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp b/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp
index 60fed5e42bb..bec1691df23 100644
--- a/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp
+++ b/searchlib/src/tests/queryeval/blueprint/intermediate_blueprints_test.cpp
@@ -70,7 +70,7 @@ TEST("test AndNot Blueprint") {
EXPECT_EQUAL(false, a.getState().want_global_filter());
a.addChild(ap(MyLeafSpec(20).addField(1, 1).want_global_filter().create()));
EXPECT_EQUAL(true, a.getState().want_global_filter());
- std::shared_ptr<GlobalFilter> empty_global_filter = GlobalFilter::create();
+ auto empty_global_filter = GlobalFilter::create();
EXPECT_FALSE(empty_global_filter->has_filter());
a.set_global_filter(*empty_global_filter);
EXPECT_EQUAL(false, got_global_filter(a.getChild(0)));
@@ -146,7 +146,7 @@ TEST("test And Blueprint") {
EXPECT_EQUAL(false, a.getState().want_global_filter());
a.addChild(ap(MyLeafSpec(20).addField(1, 1).want_global_filter().create()));
EXPECT_EQUAL(true, a.getState().want_global_filter());
- std::shared_ptr<GlobalFilter> empty_global_filter = GlobalFilter::create();
+ auto empty_global_filter = GlobalFilter::create();
a.set_global_filter(*empty_global_filter);
EXPECT_EQUAL(false, got_global_filter(a.getChild(0)));
EXPECT_EQUAL(true, got_global_filter(a.getChild(1)));
@@ -226,7 +226,7 @@ TEST("test Or Blueprint") {
EXPECT_EQUAL(false, o.getState().want_global_filter());
o.addChild(ap(MyLeafSpec(20).addField(1, 1).want_global_filter().create()));
EXPECT_EQUAL(true, o.getState().want_global_filter());
- std::shared_ptr<GlobalFilter> empty_global_filter = GlobalFilter::create();
+ auto empty_global_filter = GlobalFilter::create();
o.set_global_filter(*empty_global_filter);
EXPECT_EQUAL(false, got_global_filter(o.getChild(0)));
EXPECT_EQUAL(true, got_global_filter(o.getChild(o.childCnt() - 1)));
@@ -381,7 +381,7 @@ TEST("test Rank Blueprint") {
EXPECT_EQUAL(false, a.getState().want_global_filter());
a.addChild(ap(MyLeafSpec(20).addField(1, 1).want_global_filter().create()));
EXPECT_EQUAL(true, a.getState().want_global_filter());
- std::shared_ptr<GlobalFilter> empty_global_filter = GlobalFilter::create();
+ auto empty_global_filter = GlobalFilter::create();
a.set_global_filter(*empty_global_filter);
EXPECT_EQUAL(false, got_global_filter(a.getChild(0)));
EXPECT_EQUAL(true, got_global_filter(a.getChild(1)));