diff options
author | Ansis Brammanis <ansis@mapbox.com> | 2017-11-07 14:21:09 -0500 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-11-07 11:43:02 -0800 |
commit | c9bc71975feb1c67a9558bfa8f64955c3fe24a5c (patch) | |
tree | b29805c9c7bd74ddae222b16588946fc366610a7 | |
parent | 39b9bd42ec9468b49f16d933d0c0922cb1fabc1b (diff) | |
download | qtlocation-mapboxgl-c9bc71975feb1c67a9558bfa8f64955c3fe24a5c.tar.gz |
clear() returns the moved vector to a known state
-rw-r--r-- | src/mbgl/text/placement.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp index e4a39283ed..f19cbe1985 100644 --- a/src/mbgl/text/placement.cpp +++ b/src/mbgl/text/placement.cpp @@ -200,7 +200,6 @@ void Placement::updateLayerOpacities(RenderSymbolLayer& symbolLayer) { } void Placement::updateBucketOpacities(SymbolBucket& bucket, std::unordered_set<uint32_t>& seenCrossTileIDs) { - // TODO check if this clear is necessary, whether the vector has been moved out if (bucket.hasTextData()) bucket.text.opacityVertices.clear(); if (bucket.hasIconData()) bucket.icon.opacityVertices.clear(); if (bucket.hasCollisionBoxData()) bucket.collisionBox.dynamicVertices.clear(); |