diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-12-01 17:45:21 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-12-03 15:38:36 +0100 |
commit | 478472e501a6aa579174f547277176c19104deb1 (patch) | |
tree | 12f9852c9c64725f8bbded04ee916c720fdf9dd8 /src/mbgl/text/glyph.hpp | |
parent | d5fb535058d4d97567b08064e0203f45c2c8370f (diff) | |
download | qtlocation-mapboxgl-478472e501a6aa579174f547277176c19104deb1.tar.gz |
[core] add std::move to constructors
Diffstat (limited to 'src/mbgl/text/glyph.hpp')
-rw-r--r-- | src/mbgl/text/glyph.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp index d1ba71c767..62949ee3fd 100644 --- a/src/mbgl/text/glyph.hpp +++ b/src/mbgl/text/glyph.hpp @@ -4,6 +4,7 @@ #include <mbgl/util/rect.hpp> #include <cstdint> +#include <utility> #include <vector> #include <string> #include <map> @@ -59,7 +60,7 @@ class Shaping { public: inline explicit Shaping() : top(0), bottom(0), left(0), right(0) {} inline explicit Shaping(float x, float y, std::u32string text_) - : text(text_), top(y), bottom(y), left(x), right(x) {} + : text(std::move(text_)), top(y), bottom(y), left(x), right(x) {} std::vector<PositionedGlyph> positionedGlyphs; std::u32string text; int32_t top; |