diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-03-27 18:30:35 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2020-04-17 13:36:50 +0300 |
commit | 83b43bb38c0c2cd5e3cec502d06acfa1b32b26ca (patch) | |
tree | bd85922819e7c8bf050bb4ef8ee6aa3cf3a332d9 /src/mbgl/text | |
parent | ee2eb13a55fd03d7125f0df6edfb6b313c88537f (diff) | |
download | qtlocation-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/text')
-rw-r--r-- | src/mbgl/text/shaping.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/text/shaping.hpp b/src/mbgl/text/shaping.hpp index e4362257ce..1043aad6bf 100644 --- a/src/mbgl/text/shaping.hpp +++ b/src/mbgl/text/shaping.hpp @@ -7,6 +7,8 @@ #include <mbgl/text/glyph_atlas.hpp> #include <mbgl/text/tagged_string.hpp> +#include <utility> + namespace mbgl { struct AnchorAlignment { @@ -44,7 +46,7 @@ class PositionedIcon { private: PositionedIcon( ImagePosition image_, float top_, float bottom_, float left_, float right_, const Padding& collisionPadding_) - : _image(image_), + : _image(std::move(image_)), _top(top_), _bottom(bottom_), _left(left_), |