From 09f271646d1df11f9f250ac1385907373f8f800e Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Thu, 25 Jan 2024 10:47:52 -0800 Subject: [PATCH] Another std::move --- mvt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mvt.cpp b/mvt.cpp index 527199ad..6b0d2bdc 100644 --- a/mvt.cpp +++ b/mvt.cpp @@ -306,7 +306,6 @@ struct sorted_value { std::string mvt_tile::encode() { std::string data; - protozero::pbf_writer writer(data); for (size_t i = 0; i < layers.size(); i++) { @@ -359,7 +358,7 @@ std::string mvt_tile::encode() { } sorted_value sv; - sv.val = value_string; + sv.val = std::move(value_string); sv.orig = v; sorted_values.push_back(std::move(sv)); }