summaryrefslogtreecommitdiff
path: root/src/mbgl/style/expression/match.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/expression/match.cpp')
-rw-r--r--src/mbgl/style/expression/match.cpp2
1 files changed, 1 insertions, 1 deletions
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 <typename T>
void Match<T>::eachChild(const std::function<void(const Expression&)>& visit) const {
visit(*input);
- for (const std::pair<T, std::shared_ptr<Expression>>& branch : branches) {
+ for (const auto& branch : branches) {
visit(*branch.second);
}
visit(*otherwise);