diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-08-19 11:44:33 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2019-08-19 13:37:23 +0300 |
commit | 6dfe0e60cad9e7a1e8838374fa5d0fd48ab30782 (patch) | |
tree | df3744c7115bbf5c9d19067b1565e812b13b2233 /src/mbgl/tile | |
parent | bf34fb01900cb513dcc0fa5728f06504b62a7e26 (diff) | |
download | qtlocation-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.cpp | 1 |
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); |