diff options
-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; }; |