summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/geometry_tile_data.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-03-14 18:05:53 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-03-17 08:28:51 -0700
commit8552d6312be790c8b43ce4d9dbe06a6aafc793d4 (patch)
treec9d39b0ed91bfded9d4cd69a954551cfc9ba6ecc /src/mbgl/tile/geometry_tile_data.hpp
parentfb37f5e54369f89caca37ff176f87b9512e6e44c (diff)
downloadqtlocation-mapboxgl-8552d6312be790c8b43ce4d9dbe06a6aafc793d4.tar.gz
[core] Use core wagyu algorithm; move results into GeometryCollection
Diffstat (limited to 'src/mbgl/tile/geometry_tile_data.hpp')
-rw-r--r--src/mbgl/tile/geometry_tile_data.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mbgl/tile/geometry_tile_data.hpp b/src/mbgl/tile/geometry_tile_data.hpp
index 8a10ec058a..285f86cc7b 100644
--- a/src/mbgl/tile/geometry_tile_data.hpp
+++ b/src/mbgl/tile/geometry_tile_data.hpp
@@ -21,6 +21,13 @@ using GeometryCoordinate = Point<int16_t>;
class GeometryCoordinates : public std::vector<GeometryCoordinate> {
public:
using coordinate_type = int16_t;
+
+ GeometryCoordinates() = default;
+ GeometryCoordinates(const std::vector<GeometryCoordinate>& v)
+ : std::vector<GeometryCoordinate>(v) {}
+ GeometryCoordinates(std::vector<GeometryCoordinate>&& v)
+ : std::vector<GeometryCoordinate>(std::move(v)) {}
+
using std::vector<GeometryCoordinate>::vector;
};