From 478472e501a6aa579174f547277176c19104deb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 1 Dec 2015 17:45:21 +0100 Subject: [core] add std::move to constructors --- test/sprite/sprite_store.cpp | 3 ++- test/style/glyph_store.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/sprite/sprite_store.cpp b/test/sprite/sprite_store.cpp index fd8f3616f5..574af51b81 100644 --- a/test/sprite/sprite_store.cpp +++ b/test/sprite/sprite_store.cpp @@ -7,6 +7,7 @@ #include #include #include +#include using namespace mbgl; @@ -156,7 +157,7 @@ struct SpriteParams { class SpriteThread : public SpriteStore::Observer { public: - SpriteThread(FileSource* fileSource, SpriteTestCallback callback) : callback_(callback) { + SpriteThread(FileSource* fileSource, SpriteTestCallback callback) : callback_(std::move(callback)) { util::ThreadContext::setFileSource(fileSource); } diff --git a/test/style/glyph_store.cpp b/test/style/glyph_store.cpp index 8d7c2aeefa..4524716212 100644 --- a/test/style/glyph_store.cpp +++ b/test/style/glyph_store.cpp @@ -7,6 +7,7 @@ #include #include #include +#include using namespace mbgl; @@ -20,7 +21,7 @@ struct GlyphStoreParams { class GlyphStoreThread : public GlyphStore::Observer { public: - GlyphStoreThread(FileSource* fileSource, GlyphStoreTestCallback callback) : callback_(callback) { + GlyphStoreThread(FileSource* fileSource, GlyphStoreTestCallback callback) : callback_(std::move(callback)) { util::ThreadContext::setFileSource(fileSource); } -- cgit v1.2.1