From f4707f72e0ce7f1c40337c72ae5c0c0c8ef0efed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 26 May 2015 15:18:27 +0200 Subject: Replace mbgl::util::make_unique<> with std::make_unique<> --- test/api/repeated_render.cpp | 2 +- test/api/set_style.cpp | 2 +- test/headless/headless.cpp | 1 - test/miscellaneous/bilinear.cpp | 3 +-- test/miscellaneous/clip_ids.cpp | 1 - test/resources/mock_file_source.cpp | 2 +- test/resources/mock_file_source.hpp | 1 + test/resources/resource_loader.cpp | 16 ++++++++-------- test/storage/database.cpp | 22 +++++++++++----------- 9 files changed, 24 insertions(+), 26 deletions(-) (limited to 'test') diff --git a/test/api/repeated_render.cpp b/test/api/repeated_render.cpp index f563b00071..7f55237744 100644 --- a/test/api/repeated_render.cpp +++ b/test/api/repeated_render.cpp @@ -20,7 +20,7 @@ TEST(API, RepeatedRender) { HeadlessView view(display); DefaultFileSource fileSource(nullptr); - Log::setObserver(util::make_unique()); + Log::setObserver(std::make_unique()); Map map(view, fileSource, MapMode::Still); diff --git a/test/api/set_style.cpp b/test/api/set_style.cpp index 01ce1f0252..72260e6343 100644 --- a/test/api/set_style.cpp +++ b/test/api/set_style.cpp @@ -14,7 +14,7 @@ TEST(API, SetStyle) { HeadlessView view(display); DefaultFileSource fileSource(nullptr); - Log::setObserver(util::make_unique()); + Log::setObserver(std::make_unique()); { Map map(view, fileSource, MapMode::Still); diff --git a/test/headless/headless.cpp b/test/headless/headless.cpp index 8dfed0383b..c65e9855e7 100644 --- a/test/headless/headless.cpp +++ b/test/headless/headless.cpp @@ -4,7 +4,6 @@ #include #include #include -#include #include #include diff --git a/test/miscellaneous/bilinear.cpp b/test/miscellaneous/bilinear.cpp index 9808e20fef..bdfb9d9117 100644 --- a/test/miscellaneous/bilinear.cpp +++ b/test/miscellaneous/bilinear.cpp @@ -3,7 +3,6 @@ #include #include #include -#include #include #include @@ -24,7 +23,7 @@ TEST(Bilinear, Scaling) { const uint32_t *srcData = reinterpret_cast(src + 8); const vec2 srcSize { width, height }; const vec2 dstSize { 128, 128 }; - auto dst = util::make_unique(dstSize.x * dstSize.y); + auto dst = std::make_unique(dstSize.x * dstSize.y); uint32_t *dstData = dst.get(); std::fill(dstData, dstData + dstSize.x * dstSize.y, 0xFFFF00FF); diff --git a/test/miscellaneous/clip_ids.cpp b/test/miscellaneous/clip_ids.cpp index e176810862..dd16173a3f 100644 --- a/test/miscellaneous/clip_ids.cpp +++ b/test/miscellaneous/clip_ids.cpp @@ -5,7 +5,6 @@ #include #include -#include using namespace mbgl; diff --git a/test/resources/mock_file_source.cpp b/test/resources/mock_file_source.cpp index b6ff99c743..0a9d448d45 100644 --- a/test/resources/mock_file_source.cpp +++ b/test/resources/mock_file_source.cpp @@ -31,7 +31,7 @@ void MockFileSource::Impl::handleRequest(Request* req) const { } MockFileSource::MockFileSource(const std::string& matchFail) - : thread_(util::make_unique>("FileSource", util::ThreadPriority::Low, matchFail)) { + : thread_(std::make_unique>("FileSource", util::ThreadPriority::Low, matchFail)) { } Request* MockFileSource::request(const Resource& resource, uv_loop_t* loop, Callback callback) { diff --git a/test/resources/mock_file_source.hpp b/test/resources/mock_file_source.hpp index 8c76bd5396..55ecd95c13 100644 --- a/test/resources/mock_file_source.hpp +++ b/test/resources/mock_file_source.hpp @@ -4,6 +4,7 @@ #include #include +#include namespace mbgl { diff --git a/test/resources/resource_loader.cpp b/test/resources/resource_loader.cpp index 4d8dcc63a0..83807156ed 100644 --- a/test/resources/resource_loader.cpp +++ b/test/resources/resource_loader.cpp @@ -30,13 +30,13 @@ public: : env_(fileSource), envScope_(env_, ThreadType::Map, "Map"), data_(view, MapMode::Still), - glyphStore_(util::make_unique(loop, env_)), - glyphAtlas_(util::make_unique(1024, 1024)), - spriteAtlas_(util::make_unique(512, 512)), - texturePool_(util::make_unique()), - style_(util::make_unique