diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-22 12:31:49 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-24 09:39:15 -0700 |
commit | 089c4e413fbe80711ebd874520d3b8fdcb997112 (patch) | |
tree | a8088b0ed6cbd36b5cadf247a6e0fc524b6c3a3d /benchmark | |
parent | cb6a519f7c1e59b584b84039ebf4803c1d7eee71 (diff) | |
download | qtlocation-mapboxgl-089c4e413fbe80711ebd874520d3b8fdcb997112.tar.gz |
[core] Split up and clean up conversion.hpp
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) { |