diff options
Diffstat (limited to 'benchmark/parse/filter.cpp')
-rw-r--r-- | benchmark/parse/filter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmark/parse/filter.cpp b/benchmark/parse/filter.cpp index 8beff3b308..4269f8e169 100644 --- a/benchmark/parse/filter.cpp +++ b/benchmark/parse/filter.cpp @@ -2,7 +2,8 @@ #include <mbgl/style/filter.hpp> #include <mbgl/style/filter_evaluator.hpp> -#include <mbgl/style/parser.hpp> +#include <mbgl/style/rapidjson_conversion.hpp> +#include <mbgl/style/conversion.hpp> #include <mbgl/tile/geometry_tile_data.hpp> #include <rapidjson/document.h> @@ -16,7 +17,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::parseFilter(doc); + return style::conversion::convertFilter(doc).get<style::Filter>(); } static void Parse_Filter(benchmark::State& state) { |