summaryrefslogtreecommitdiff
path: root/src/mbgl/style/light.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/light.cpp')
-rw-r--r--src/mbgl/style/light.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mbgl/style/light.cpp b/src/mbgl/style/light.cpp
index 2ef4c2f940..e4ceed0ce6 100644
--- a/src/mbgl/style/light.cpp
+++ b/src/mbgl/style/light.cpp
@@ -12,6 +12,8 @@
#include <mapbox/eternal.hpp>
+#include <utility>
+
namespace mbgl {
namespace style {
@@ -188,7 +190,7 @@ PropertyValue<LightAnchorType> Light::getAnchor() const {
void Light::setAnchor(PropertyValue<LightAnchorType> property) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightAnchor>().value = property;
+ impl_->properties.template get<LightAnchor>().value = std::move(property);
impl = std::move(impl_);
observer->onLightChanged(*this);
}
@@ -214,7 +216,7 @@ PropertyValue<Color> Light::getColor() const {
void Light::setColor(PropertyValue<Color> property) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightColor>().value = property;
+ impl_->properties.template get<LightColor>().value = std::move(property);
impl = std::move(impl_);
observer->onLightChanged(*this);
}
@@ -240,7 +242,7 @@ PropertyValue<float> Light::getIntensity() const {
void Light::setIntensity(PropertyValue<float> property) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightIntensity>().value = property;
+ impl_->properties.template get<LightIntensity>().value = std::move(property);
impl = std::move(impl_);
observer->onLightChanged(*this);
}
@@ -266,7 +268,7 @@ PropertyValue<Position> Light::getPosition() const {
void Light::setPosition(PropertyValue<Position> property) {
auto impl_ = mutableImpl();
- impl_->properties.template get<LightPosition>().value = property;
+ impl_->properties.template get<LightPosition>().value = std::move(property);
impl = std::move(impl_);
observer->onLightChanged(*this);
}