summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression')
-rw-r--r--include/mbgl/style/expression/let.hpp4
-rw-r--r--include/mbgl/style/expression/literal.hpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/include/mbgl/style/expression/let.hpp b/include/mbgl/style/expression/let.hpp
index 7c468dfeb1..a03c4b7d70 100644
--- a/include/mbgl/style/expression/let.hpp
+++ b/include/mbgl/style/expression/let.hpp
@@ -49,8 +49,8 @@ private:
class Var : public Expression {
public:
- Var(std::string name_, const std::shared_ptr<Expression>& value_)
- : Expression(Kind::Var, value_->getType()), name(std::move(name_)), value(value_) {}
+ Var(std::string name_, std::shared_ptr<Expression> value_)
+ : Expression(Kind::Var, value_->getType()), name(std::move(name_)), value(std::move(value_)) {}
static ParseResult parse(const mbgl::style::conversion::Convertible&, ParsingContext&);
diff --git a/include/mbgl/style/expression/literal.hpp b/include/mbgl/style/expression/literal.hpp
index f704a34a59..e8f0a5d9ee 100644
--- a/include/mbgl/style/expression/literal.hpp
+++ b/include/mbgl/style/expression/literal.hpp
@@ -14,7 +14,8 @@ class Literal : public Expression {
public:
Literal(const Value& value_) : Expression(Kind::Literal, typeOf(value_)), value(value_) {}
- Literal(const type::Array& type_, std::vector<Value> value_) : Expression(Kind::Literal, type_), value(value_) {}
+ Literal(const type::Array& type_, std::vector<Value> value_)
+ : Expression(Kind::Literal, type_), value(std::move(value_)) {}
EvaluationResult evaluate(const EvaluationContext&) const override {
return value;