diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-11-07 12:51:16 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@gmail.com> | 2017-11-07 12:51:16 -0800 |
commit | 777f579493f669badcd0fc069d495f6a910aaefe (patch) | |
tree | 2f359f5b3f83de8b0dfc30fa188bafd509d6acd7 | |
parent | f363d1ce3e3a6252f053cf7042c11ddeabb249cf (diff) | |
download | qtlocation-mapboxgl-777f579493f669badcd0fc069d495f6a910aaefe.tar.gz |
Fix unit tests that use SymbolBucket.
-rw-r--r-- | test/gl/bucket.test.cpp | 2 | ||||
-rw-r--r-- | test/tile/vector_tile.test.cpp | 2 |
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 { |