summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-12-03 16:31:09 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-12-04 16:20:51 +0200
commit2b9f3aad9a69aba0035442364320c372c49053c0 (patch)
tree4a639ce5693845b0027f05cf283617029bb3f1ee /include
parentc89daf6bf190223b6da7867973d3f42f785eee01 (diff)
downloadqtlocation-mapboxgl-2b9f3aad9a69aba0035442364320c372c49053c0.tar.gz
[core] use constexpr map using eternal for expression lookups
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/expression/parsing_context.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/mbgl/style/expression/parsing_context.hpp b/include/mbgl/style/expression/parsing_context.hpp
index dde907ec2c..08151a2b7d 100644
--- a/include/mbgl/style/expression/parsing_context.hpp
+++ b/include/mbgl/style/expression/parsing_context.hpp
@@ -178,8 +178,7 @@ private:
};
using ParseFunction = ParseResult (*)(const conversion::Convertible&, ParsingContext&);
-using ExpressionRegistry = std::unordered_map<std::string, ParseFunction>;
-const ExpressionRegistry& getExpressionRegistry();
+ParseFunction getExpression(const std::string&);
} // namespace expression
} // namespace style