mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
Avoid another string construction
This commit is contained in:
@@ -159,7 +159,11 @@ bool mvt_tile::decode(const std::string &message, bool &was_compressed) {
|
||||
case 1: /* string */
|
||||
value.type = mvt_string;
|
||||
value.s = string_pool;
|
||||
value.set_string_value(value_reader.get_string());
|
||||
{
|
||||
auto v = value_reader.get_view();
|
||||
std::string_view sv(v.data(), v.size());
|
||||
value.set_string_value(sv);
|
||||
}
|
||||
break;
|
||||
|
||||
case 2: /* float */
|
||||
|
||||
Reference in New Issue
Block a user