diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-11-01 10:18:09 -0700 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-11-01 10:49:07 -0700 |
commit | af55c994b42f207c93e8d2d3db82cd92d8856d9e (patch) | |
tree | 3e22d556931d1cd0528a23de5fa40d25be1dbe09 | |
parent | d93b2929decbdc881a504e293b80c89fb2176a7d (diff) | |
download | qtlocation-mapboxgl-af55c994b42f207c93e8d2d3db82cd92d8856d9e.tar.gz |
Compiler appeasement.
-rw-r--r-- | src/mbgl/layout/symbol_projection.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/text/cross_tile_symbol_index.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp index 08c265a891..8535014f22 100644 --- a/src/mbgl/layout/symbol_projection.hpp +++ b/src/mbgl/layout/symbol_projection.hpp @@ -24,7 +24,7 @@ namespace mbgl { struct PlacedGlyph { PlacedGlyph(Point<float> point_, float angle_, optional<TileDistance> tileDistance_) - : point(point_), angle(angle_), tileDistance(tileDistance_) + : point(point_), angle(angle_), tileDistance(std::move(tileDistance_)) {} Point<float> point; float angle; diff --git a/src/mbgl/text/cross_tile_symbol_index.hpp b/src/mbgl/text/cross_tile_symbol_index.hpp index 5d2551d2ea..6cb2ec8707 100644 --- a/src/mbgl/text/cross_tile_symbol_index.hpp +++ b/src/mbgl/text/cross_tile_symbol_index.hpp @@ -16,8 +16,8 @@ class SymbolInstance; class IndexedSymbolInstance { public: - IndexedSymbolInstance(SymbolInstance& symbolInstance, Point<double> coord) - : instance(symbolInstance), coord(coord) {}; + IndexedSymbolInstance(SymbolInstance& symbolInstance, Point<double> coord_) + : instance(symbolInstance), coord(std::move(coord_)) {}; SymbolInstance& instance; Point<double> coord; }; |