summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/let.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/let.hpp')
-rw-r--r--include/mbgl/style/expression/let.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/mbgl/style/expression/let.hpp b/include/mbgl/style/expression/let.hpp
index d11ba1b976..7c468dfeb1 100644
--- a/include/mbgl/style/expression/let.hpp
+++ b/include/mbgl/style/expression/let.hpp
@@ -49,11 +49,8 @@ private:
class Var : public Expression {
public:
- Var(std::string name_, std::shared_ptr<Expression> value_) :
- Expression(Kind::Var, value_->getType()),
- name(std::move(name_)),
- value(value_)
- {}
+ Var(std::string name_, const std::shared_ptr<Expression>& value_)
+ : Expression(Kind::Var, value_->getType()), name(std::move(name_)), value(value_) {}
static ParseResult parse(const mbgl::style::conversion::Convertible&, ParsingContext&);