diff options
Diffstat (limited to 'src/mbgl/style/light.cpp.ejs')
-rw-r--r-- | src/mbgl/style/light.cpp.ejs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/style/light.cpp.ejs b/src/mbgl/style/light.cpp.ejs index 9f84238839..fb0c47dc62 100644 --- a/src/mbgl/style/light.cpp.ejs +++ b/src/mbgl/style/light.cpp.ejs @@ -15,6 +15,8 @@ #include <mapbox/eternal.hpp> +#include <utility> + namespace mbgl { namespace style { @@ -142,7 +144,7 @@ StyleProperty Light::getProperty(const std::string& name) const { void Light::set<%- camelize(property.name) %>(<%- propertyValueType(property) %> property) { auto impl_ = mutableImpl(); - impl_->properties.template get<Light<%- camelize(property.name) %>>().value = property; + impl_->properties.template get<Light<%- camelize(property.name) %>>().value = std::move(property); impl = std::move(impl_); observer->onLightChanged(*this); } |