From 8faee2554692ae13da5fbb68d3eef2ebb09a0c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 30 Jan 2019 16:50:38 +0100 Subject: [core] change loop variable type to auto We used `const std::pair>`, but the actual type is `const std::pair>` which resulted in an implicit copy --- src/mbgl/style/expression/match.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/style/expression/match.cpp b/src/mbgl/style/expression/match.cpp index 0f05001a97..93627e9df1 100644 --- a/src/mbgl/style/expression/match.cpp +++ b/src/mbgl/style/expression/match.cpp @@ -11,7 +11,7 @@ namespace expression { template void Match::eachChild(const std::function& visit) const { visit(*input); - for (const std::pair>& branch : branches) { + for (const auto& branch : branches) { visit(*branch.second); } visit(*otherwise); -- cgit v1.2.1