summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-11-07 12:51:16 -0800
committerChris Loer <chris.loer@gmail.com>2017-11-07 12:51:16 -0800
commit777f579493f669badcd0fc069d495f6a910aaefe (patch)
tree2f359f5b3f83de8b0dfc30fa188bafd509d6acd7
parentf363d1ce3e3a6252f053cf7042c11ddeabb249cf (diff)
downloadqtlocation-mapboxgl-777f579493f669badcd0fc069d495f6a910aaefe.tar.gz
Fix unit tests that use SymbolBucket.
-rw-r--r--test/gl/bucket.test.cpp2
-rw-r--r--test/tile/vector_tile.test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/gl/bucket.test.cpp b/test/gl/bucket.test.cpp
index f43fedb1c3..f4f153a831 100644
--- a/test/gl/bucket.test.cpp
+++ b/test/gl/bucket.test.cpp
@@ -113,7 +113,7 @@ TEST(Buckets, SymbolBucket) {
std::vector<SymbolInstance> symbolInstances;
gl::Context context;
- SymbolBucket bucket { layout, {}, 16.0f, 1.0f, 0, sdfIcons, iconsNeedLinear, sortFeaturesByY, symbolInstances };
+ SymbolBucket bucket { layout, {}, 16.0f, 1.0f, 0, sdfIcons, iconsNeedLinear, sortFeaturesByY, std::move(symbolInstances) };
ASSERT_FALSE(bucket.hasIconData());
ASSERT_FALSE(bucket.hasTextData());
ASSERT_FALSE(bucket.hasCollisionBoxData());
diff --git a/test/tile/vector_tile.test.cpp b/test/tile/vector_tile.test.cpp
index 5963e7f154..9d42f7ae74 100644
--- a/test/tile/vector_tile.test.cpp
+++ b/test/tile/vector_tile.test.cpp
@@ -76,7 +76,7 @@ TEST(VectorTile, Issue7615) {
std::map<
std::string,
std::pair<style::IconPaintProperties::PossiblyEvaluated, style::TextPaintProperties::PossiblyEvaluated>>(),
- 16.0f, 1.0f, 0.0f, false, false, false, symbolInstances);
+ 16.0f, 1.0f, 0.0f, false, false, false, std::move(symbolInstances));
// Simulate placement of a symbol layer.
tile.onPlacement(GeometryTile::PlacementResult {