From af55c994b42f207c93e8d2d3db82cd92d8856d9e Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Wed, 1 Nov 2017 10:18:09 -0700 Subject: Compiler appeasement. --- src/mbgl/layout/symbol_projection.hpp | 2 +- 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 point_, float angle_, optional tileDistance_) - : point(point_), angle(angle_), tileDistance(tileDistance_) + : point(point_), angle(angle_), tileDistance(std::move(tileDistance_)) {} Point 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 coord) - : instance(symbolInstance), coord(coord) {}; + IndexedSymbolInstance(SymbolInstance& symbolInstance, Point coord_) + : instance(symbolInstance), coord(std::move(coord_)) {}; SymbolInstance& instance; Point coord; }; -- cgit v1.2.1