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 | 563d4b6cac0076e87bd57e5227e20689c05f44fa (patch) | |
tree | 10ec988f72a2fa6d5845493d9ff267f73d6acb32 | |
parent | 09d58c0f866ac64edd1b9535e649608ee29ab8b1 (diff) | |
download | qtlocation-mapboxgl-563d4b6cac0076e87bd57e5227e20689c05f44fa.tar.gz |
[core] Fix performance-move-const-arg errors in header files
As reported by clang-tidy-8.
-rw-r--r-- | include/mbgl/style/image.hpp | 2 | ||||
-rw-r--r-- | src/mbgl/text/glyph.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/mbgl/style/image.hpp b/include/mbgl/style/image.hpp index deb4b6f6ce..d551651cd0 100644 --- a/include/mbgl/style/image.hpp +++ b/include/mbgl/style/image.hpp @@ -47,7 +47,7 @@ public: false, std::move(stretchX), std::move(stretchY), - std::move(content)) {} + content) {} Image(const Image&); std::string getID() const; diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp index f3f28828ef..2d8853e92a 100644 --- a/src/mbgl/text/glyph.hpp +++ b/src/mbgl/text/glyph.hpp @@ -76,8 +76,8 @@ public: vertical(vertical_), font(font_), scale(scale_), - rect(std::move(rect_)), - metrics(std::move(metrics_)), + rect(rect_), + metrics(metrics_), imageID(std::move(imageID_)), sectionIndex(sectionIndex_) {} |