summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne H Juul <arnej@yahooinc.com>2021-11-05 11:06:23 +0000
committerArne H Juul <arnej@yahooinc.com>2021-11-05 11:06:23 +0000
commit9667aa90699281d865dbcf8c779593429c2a2918 (patch)
treed080431bf6349269986cd908f6a278855d291297 /searchlib
parente5195d6bbf10e53f56e1b0209385c0d49f6ede0d (diff)
use data() with size()
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/engine/proto_converter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/engine/proto_converter.cpp b/searchlib/src/vespa/searchlib/engine/proto_converter.cpp
index e13b17d1146..77781d583cb 100644
--- a/searchlib/src/vespa/searchlib/engine/proto_converter.cpp
+++ b/searchlib/src/vespa/searchlib/engine/proto_converter.cpp
@@ -118,7 +118,7 @@ ProtoConverter::search_reply_to_proto(const SearchReply &reply, ProtoSearchReply
size_t num_match_features = reply.match_features.names.size();
assert(num_match_features * reply.hits.size() == reply.match_features.values.size());
for (const auto & name : reply.match_features.names) {
- proto.add_match_feature_names()->assign(name.c_str(), name.size());
+ proto.add_match_feature_names()->assign(name.data(), name.size());
}
auto mfv_iter = reply.match_features.values.begin();
for (size_t i = 0; i < reply.hits.size(); ++i) {