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 | 46fa69159616860ded192643031f7cb3c10b818b (patch) | |
tree | 943a45833a3495b3c498944b9dd6f51f996a2b24 /include/mbgl/style/expression/case.hpp | |
parent | 563d4b6cac0076e87bd57e5227e20689c05f44fa (diff) | |
download | qtlocation-mapboxgl-46fa69159616860ded192643031f7cb3c10b818b.tar.gz |
[core] Fix performance-unnecessary-value-param errors in header files
As reported by clang-tidy-8.
Diffstat (limited to 'include/mbgl/style/expression/case.hpp')
-rw-r--r-- | include/mbgl/style/expression/case.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mbgl/style/expression/case.hpp b/include/mbgl/style/expression/case.hpp index 7cd007d3c7..4a254dc35b 100644 --- a/include/mbgl/style/expression/case.hpp +++ b/include/mbgl/style/expression/case.hpp @@ -5,6 +5,7 @@ #include <mbgl/style/conversion.hpp> #include <memory> +#include <utility> #include <vector> namespace mbgl { @@ -16,8 +17,7 @@ public: using Branch = std::pair<std::unique_ptr<Expression>, std::unique_ptr<Expression>>; Case(type::Type type_, std::vector<Branch> branches_, std::unique_ptr<Expression> otherwise_) - : Expression(Kind::Case, type_), branches(std::move(branches_)), otherwise(std::move(otherwise_)) { - } + : Expression(Kind::Case, std::move(type_)), branches(std::move(branches_)), otherwise(std::move(otherwise_)) {} static ParseResult parse(const mbgl::style::conversion::Convertible& value, ParsingContext& ctx); |