summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/literal.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-04-17 13:36:50 +0300
commitea2477f2ea9f1ccebe0263104ad13d729fdbcfdf (patch)
treea88ca30d490124c508284116f4c9e267400b8c3c /include/mbgl/style/expression/literal.hpp
parentcc8b0e1746cfc6fdc99582fdb09e7624b14d9d0e (diff)
downloadqtlocation-mapboxgl-ea2477f2ea9f1ccebe0263104ad13d729fdbcfdf.tar.gz
[core] Fix performance-no-automatic-move (bonus)
As reported by clang-tidy-10. We don't run clang-tidy-10 yet. We should probably consider moving the bots at some point so errors like this won't return.
Diffstat (limited to 'include/mbgl/style/expression/literal.hpp')
-rw-r--r--include/mbgl/style/expression/literal.hpp3
1 files changed, 2 insertions, 1 deletions
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;