aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-08-10 23:35:13 +0200
committerHenning Baldersheim <balder@oath.com>2018-08-10 23:35:13 +0200
commit4be58f582e0cb3313eedc0abedc86170ab41580c (patch)
tree8a4a10d78e98cd4b0aa4f1eff364cfe81ed8bd7b /searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp
parent6ecf0ff7e093eae86292c283bf586c405a557659 (diff)
Pass stringref by value
Diffstat (limited to 'searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp')
-rw-r--r--searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp b/searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp
index dc352f70706..e33158e559f 100644
--- a/searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp
+++ b/searchlib/src/tests/diskindex/bitvector/bitvector_test.cpp
@@ -20,7 +20,7 @@ struct FieldWriterWrapper
FieldWriterWrapper(uint32_t docIdLimit, uint64_t numWordIds);
FieldWriterWrapper &
- newWord(const vespalib::stringref &word);
+ newWord(vespalib::stringref word);
FieldWriterWrapper &
add(uint32_t docId);
@@ -51,7 +51,7 @@ FieldWriterWrapper::open(const std::string &path,
}
FieldWriterWrapper &
-FieldWriterWrapper::newWord(const vespalib::stringref &word)
+FieldWriterWrapper::newWord(vespalib::stringref word)
{
_writer.newWord(word);
return *this;