From 563d4b6cac0076e87bd57e5227e20689c05f44fa Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Fri, 27 Mar 2020 18:30:35 +0200 Subject: [core] Fix performance-move-const-arg errors in header files As reported by clang-tidy-8. --- include/mbgl/style/image.hpp | 2 +- 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_) {} -- cgit v1.2.1