diff options
Diffstat (limited to 'document/src/tests/documenttestcase.cpp')
-rw-r--r-- | document/src/tests/documenttestcase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/document/src/tests/documenttestcase.cpp b/document/src/tests/documenttestcase.cpp index b2da5e51b74..32503ac0bd0 100644 --- a/document/src/tests/documenttestcase.cpp +++ b/document/src/tests/documenttestcase.cpp @@ -99,10 +99,10 @@ void DocumentTest::testFieldPath() "{\"\"}", "", "" }; for (size_t i(0); i < sizeof(testValues)/sizeof(testValues[0]); i+=3) { - vespalib::string tmp = testValues[i]; + vespalib::stringref tmp = testValues[i]; vespalib::string key = FieldPathEntry::parseKey(tmp); CPPUNIT_ASSERT_EQUAL(testValues[i+1], key); - CPPUNIT_ASSERT_EQUAL(testValues[i+2], tmp); + CPPUNIT_ASSERT_EQUAL(testValues[i+2], vespalib::string(tmp)); } } |