diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-11-29 15:16:14 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-11-29 16:18:17 +0200 |
commit | 772b9090626731101b82eccacbc3adaa71cc428c (patch) | |
tree | c055f2262d2ee3afc6c1eaeb765c52be149206b8 /src | |
parent | 87a7dab553efa6e4f1a9e6ca7591ed97dffc1aa0 (diff) | |
download | qtlocation-mapboxgl-772b9090626731101b82eccacbc3adaa71cc428c.tar.gz |
[build] Clang-3.8: Explicit mbgl::PlacedGlyph default+copy+move ctor
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/layout/symbol_projection.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp index 8535014f22..3e57d162fd 100644 --- a/src/mbgl/layout/symbol_projection.hpp +++ b/src/mbgl/layout/symbol_projection.hpp @@ -23,9 +23,17 @@ namespace mbgl { }; struct PlacedGlyph { + PlacedGlyph() = default; + PlacedGlyph(Point<float> point_, float angle_, optional<TileDistance> tileDistance_) : point(point_), angle(angle_), tileDistance(std::move(tileDistance_)) {} + PlacedGlyph(PlacedGlyph&& other) noexcept + : point(std::move(other.point)), angle(other.angle), tileDistance(std::move(other.tileDistance)) + {} + PlacedGlyph(const PlacedGlyph& other) + : point(std::move(other.point)), angle(other.angle), tileDistance(std::move(other.tileDistance)) + {} Point<float> point; float angle; optional<TileDistance> tileDistance; |