summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-04-13 08:44:04 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-04-13 08:44:04 +0000
commitb08416be4aca40af4efbf48c73689dcd08eea66b (patch)
tree226b55a20a9cc4ce08a151254aecd6edf4e945e5 /searchlib
parent7ab1e5a8f56df19925bd118887a061b913104dee (diff)
No need to copy string
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.cpp2
-rw-r--r--searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.cpp b/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.cpp
index a030dcb0640..2edd00ad5a5 100644
--- a/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.cpp
+++ b/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.cpp
@@ -13,7 +13,7 @@ vespalib::string indirectKeyMarker("attribute(");
}
std::unique_ptr<AttributeNode>
-makeAttributeMapLookupNode(const vespalib::string attributeName)
+makeAttributeMapLookupNode(vespalib::stringref attributeName)
{
vespalib::asciistream keyName;
vespalib::asciistream valueName;
diff --git a/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.h b/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.h
index f56cea962d3..baa074b4004 100644
--- a/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.h
+++ b/searchlib/src/vespa/searchlib/test/make_attribute_map_lookup_node.h
@@ -9,6 +9,6 @@ namespace search::expression { class AttributeNode; }
namespace search::expression::test {
std::unique_ptr<AttributeNode>
-makeAttributeMapLookupNode(const vespalib::string attributeName);
+makeAttributeMapLookupNode(vespalib::stringref attributeName);
}