From 46fa69159616860ded192643031f7cb3c10b818b 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-unnecessary-value-param errors in header files As reported by clang-tidy-8. --- include/mbgl/style/expression/match.hpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'include/mbgl/style/expression/match.hpp') diff --git a/include/mbgl/style/expression/match.hpp b/include/mbgl/style/expression/match.hpp index 2ce4b7a533..766eec8f5a 100644 --- a/include/mbgl/style/expression/match.hpp +++ b/include/mbgl/style/expression/match.hpp @@ -15,15 +15,14 @@ class Match : public Expression { public: using Branches = std::unordered_map>; - Match(type::Type type_, + Match(const type::Type& type_, std::unique_ptr input_, Branches branches_, - std::unique_ptr otherwise_ - ) : Expression(Kind::Match, type_), - input(std::move(input_)), - branches(std::move(branches_)), - otherwise(std::move(otherwise_)) - {} + std::unique_ptr otherwise_) + : Expression(Kind::Match, type_), + input(std::move(input_)), + branches(std::move(branches_)), + otherwise(std::move(otherwise_)) {} EvaluationResult evaluate(const EvaluationContext& params) const override; -- cgit v1.2.1