From 2b9f3aad9a69aba0035442364320c372c49053c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Mon, 3 Dec 2018 16:31:09 +0200 Subject: [core] use constexpr map using eternal for expression lookups --- include/mbgl/style/expression/parsing_context.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/mbgl/style/expression') 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; -const ExpressionRegistry& getExpressionRegistry(); +ParseFunction getExpression(const std::string&); } // namespace expression } // namespace style -- cgit v1.2.1