From 666512148e0c7a05ceb2de1ec471400fb719534a Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Wed, 13 May 2020 12:02:20 +0000 Subject: use auto --- .../tests/queryeval/blueprint/intermediate_blueprints_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'searchlib') 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 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 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 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 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))); -- cgit v1.2.3