Avoid another string construction

This commit is contained in:
Erica Fischer
2024-01-25 14:30:56 -08:00
parent 5b457dfe68
commit d0f43bf582
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -105,7 +105,7 @@ struct mvt_value {
return s->c_str() + numeric_value.string_value.off;
}
void set_string_value(const std::string &val) {
void set_string_value(const std::string_view &val) {
if (s == nullptr) {
s = std::make_shared<std::string>();
}