summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/literal.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/literal.hpp')
-rw-r--r--include/mbgl/style/expression/literal.hpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/mbgl/style/expression/literal.hpp b/include/mbgl/style/expression/literal.hpp
index bcae23b1fa..f704a34a59 100644
--- a/include/mbgl/style/expression/literal.hpp
+++ b/include/mbgl/style/expression/literal.hpp
@@ -12,15 +12,9 @@ namespace expression {
class Literal : public Expression {
public:
- Literal(Value value_)
- : Expression(Kind::Literal, typeOf(value_))
- , value(value_)
- {}
-
- Literal(type::Array type_, std::vector<Value> value_)
- : Expression(Kind::Literal, type_)
- , value(value_)
- {}
+ 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_) {}
EvaluationResult evaluate(const EvaluationContext&) const override {
return value;