From 5dd98df50ba1210b1eef0d8d6655713a725f2995 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 21 Apr 2017 14:52:19 -0700 Subject: [all] Rationalize style::Image A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr --- benchmark/api/query.benchmark.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'benchmark') diff --git a/benchmark/api/query.benchmark.cpp b/benchmark/api/query.benchmark.cpp index 197103f060..faf6c4fbe4 100644 --- a/benchmark/api/query.benchmark.cpp +++ b/benchmark/api/query.benchmark.cpp @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include #include @@ -25,10 +25,8 @@ public: map.setStyleJSON(util::read_file("benchmark/fixtures/api/query_style.json")); map.setLatLngZoom({ 40.726989, -73.992857 }, 15); // Manhattan - - auto decoded = decodeImage(util::read_file("benchmark/fixtures/api/default_marker.png")); - auto image = std::make_unique(std::move(decoded), 1.0); - map.addImage("test-icon", std::move(image)); + map.addImage("test-icon", std::make_unique( + decodeImage(util::read_file("benchmark/fixtures/api/default_marker.png")), 1.0)); mbgl::benchmark::render(map, view); } -- cgit v1.2.1