From d96e6abe81f2978caed7c10010a54fba9c5b5daf Mon Sep 17 00:00:00 2001 From: artemp Date: Thu, 30 Mar 2017 09:54:12 +0100 Subject: [PATCH] const correctness via @flippmoke --- include/mapnik/json/create_feature.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/json/create_feature.hpp b/include/mapnik/json/create_feature.hpp index bada4ab69..19420efa2 100644 --- a/include/mapnik/json/create_feature.hpp +++ b/include/mapnik/json/create_feature.hpp @@ -183,7 +183,7 @@ void create_feature(feature_impl & feature, auto const& geometry = mapnik::util::get(geom_value); mapnik::geometry::geometry_types geom_type; mapnik::json::positions const* coordinates = nullptr; - for (auto & elem2 : geometry) + for (auto const& elem2 : geometry) { auto const key2 = std::get<0>(elem2); if (key2 == mapnik::json::well_known_names::type)