summaryrefslogtreecommitdiff
path: root/src/mbgl/geometry/anchor.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commit83b43bb38c0c2cd5e3cec502d06acfa1b32b26ca (patch)
treebd85922819e7c8bf050bb4ef8ee6aa3cf3a332d9 /src/mbgl/geometry/anchor.hpp
parentee2eb13a55fd03d7125f0df6edfb6b313c88537f (diff)
downloadqtlocation-mapboxgl-83b43bb38c0c2cd5e3cec502d06acfa1b32b26ca.tar.gz
[core] Fix modernize-pass-by-value errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'src/mbgl/geometry/anchor.hpp')
-rw-r--r--src/mbgl/geometry/anchor.hpp4
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>;