summaryrefslogtreecommitdiff
path: root/src/mbgl/tile
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-08-19 11:44:33 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-08-19 13:37:23 +0300
commit6dfe0e60cad9e7a1e8838374fa5d0fd48ab30782 (patch)
treedf3744c7115bbf5c9d19067b1565e812b13b2233 /src/mbgl/tile
parentbf34fb01900cb513dcc0fa5728f06504b62a7e26 (diff)
downloadqtlocation-mapboxgl-6dfe0e60cad9e7a1e8838374fa5d0fd48ab30782.tar.gz
[core] Fix use after std::move detected by clang-tidy
Detected by the bot being setup at https://github.com/mapbox/mapbox-gl-native/pull/15385.
Diffstat (limited to 'src/mbgl/tile')
-rw-r--r--src/mbgl/tile/geometry_tile_data.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/tile/geometry_tile_data.cpp b/src/mbgl/tile/geometry_tile_data.cpp
index 5320df6893..adbcd6c599 100644
--- a/src/mbgl/tile/geometry_tile_data.cpp
+++ b/src/mbgl/tile/geometry_tile_data.cpp
@@ -74,6 +74,7 @@ std::vector<GeometryCollection> classifyRings(const GeometryCollection& rings) {
if (ccw == (area < 0 ? -1 : 1) && !polygon.empty()) {
polygons.emplace_back(std::move(polygon));
+ polygon = GeometryCollection();
}
polygon.emplace_back(ring);