summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2019-05-08 13:59:26 +0300
committerAnder Conselvan de Oliveira <ander.deoliveira@mapbox.com>2019-05-21 12:14:22 +0300
commite30ff619c6d04e86295b63b642e137f449fc0907 (patch)
treee70f921002f8466afe4aba235c69e4f1400644c2
parentd502b7244970db52b1f823ade64ac5ded7c78144 (diff)
downloadqtlocation-mapboxgl-e30ff619c6d04e86295b63b642e137f449fc0907.tar.gz
[core] Forward args in style::expression::dsl::compound()
-rw-r--r--src/mbgl/style/expression/dsl_impl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/expression/dsl_impl.hpp b/src/mbgl/style/expression/dsl_impl.hpp
index 201c60ffd8..61759574a9 100644
--- a/src/mbgl/style/expression/dsl_impl.hpp
+++ b/src/mbgl/style/expression/dsl_impl.hpp
@@ -11,8 +11,8 @@ namespace dsl {
std::unique_ptr<Expression> compound(const char* op, std::vector<std::unique_ptr<Expression>> args);
template <class... Args>
-std::unique_ptr<Expression> compound(const char* op, Args... args) {
- return compound(op, vec(std::move(args)...));
+std::unique_ptr<Expression> compound(const char* op, Args&&... args) {
+ return compound(op, vec(std::forward<Args>(args)...));
}
} // namespace dsl