summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching/query_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-06-03 23:51:36 +0200
committerHenning Baldersheim <balder@oath.com>2018-06-03 23:51:36 +0200
commit357b52f73cbc968f5d5effe8a341c4d60333c223 (patch)
treea371bc5c7cb29fc67b10be0aae9521ff4aee9fa8 /searchcore/src/tests/proton/matching/query_test.cpp
parent26cfb584f43a65fb08548180a38d522af62bd0aa (diff)
Avoid inline errors.
Diffstat (limited to 'searchcore/src/tests/proton/matching/query_test.cpp')
-rw-r--r--searchcore/src/tests/proton/matching/query_test.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/matching/query_test.cpp b/searchcore/src/tests/proton/matching/query_test.cpp
index 7ec2485c625..461d2300843 100644
--- a/searchcore/src/tests/proton/matching/query_test.cpp
+++ b/searchcore/src/tests/proton/matching/query_test.cpp
@@ -729,9 +729,11 @@ Test::requireThatFakeFieldSearchDumpsDiffer()
FakeSearchable b;
a.tag("a");
b.tag("b");
- ProtonStringTerm n1("term1", "field1", string_id, string_weight);
- ProtonStringTerm n2("term2", "field1", string_id, string_weight);
- ProtonStringTerm n3("term1", "field2", string_id, string_weight);
+ vespalib::string term1="term1";
+ vespalib::string term2="term2";
+ ProtonStringTerm n1(term1, "field1", string_id, string_weight);
+ ProtonStringTerm n2(term2, "field1", string_id, string_weight);
+ ProtonStringTerm n3(term1, "field2", string_id, string_weight);
FieldSpecList fields1;
FieldSpecList fields2;