diff options
Diffstat (limited to 'src/mbgl/geometry/anchor.hpp')
-rw-r--r-- | src/mbgl/geometry/anchor.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/geometry/anchor.hpp b/src/mbgl/geometry/anchor.hpp index f29796bf48..f50816a3a6 100644 --- a/src/mbgl/geometry/anchor.hpp +++ b/src/mbgl/geometry/anchor.hpp @@ -2,7 +2,7 @@ #include <mbgl/util/geometry.hpp> #include <mbgl/util/optional.hpp> - +#include <utility> #include <vector> namespace mbgl { @@ -14,7 +14,7 @@ public: optional<std::size_t> segment; Anchor(float x_, float y_, float angle_, optional<std::size_t> segment_ = nullopt) - : point(x_, y_), angle(angle_), segment(segment_) {} + : point(x_, y_), angle(angle_), segment(std::move(segment_)) {} }; using Anchors = std::vector<Anchor>; |