diff options
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/parse/filter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/benchmark/parse/filter.cpp b/benchmark/parse/filter.cpp index 4269f8e169..24314e8584 100644 --- a/benchmark/parse/filter.cpp +++ b/benchmark/parse/filter.cpp @@ -4,6 +4,7 @@ #include <mbgl/style/filter_evaluator.hpp> #include <mbgl/style/rapidjson_conversion.hpp> #include <mbgl/style/conversion.hpp> +#include <mbgl/style/conversion/filter.hpp> #include <mbgl/tile/geometry_tile_data.hpp> #include <rapidjson/document.h> @@ -17,7 +18,7 @@ typedef std::multimap<std::string, Value> Properties; style::Filter parse(const char* expression) { rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator> doc; doc.Parse<0>(expression); - return style::conversion::convertFilter(doc).get<style::Filter>(); + return *style::conversion::convert<style::Filter>(doc); } static void Parse_Filter(benchmark::State& state) { |