diff options
Diffstat (limited to 'include/mbgl/style/layers/background_layer.hpp')
-rw-r--r-- | include/mbgl/style/layers/background_layer.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/mbgl/style/layers/background_layer.hpp b/include/mbgl/style/layers/background_layer.hpp index f0efa7acba..1e1f4b78a8 100644 --- a/include/mbgl/style/layers/background_layer.hpp +++ b/include/mbgl/style/layers/background_layer.hpp @@ -25,20 +25,20 @@ public: // Paint properties static PropertyValue<Color> getDefaultBackgroundColor(); - PropertyValue<Color> getBackgroundColor() const; - void setBackgroundColor(PropertyValue<Color>); + const PropertyValue<Color>& getBackgroundColor() const; + void setBackgroundColor(const PropertyValue<Color>&); void setBackgroundColorTransition(const TransitionOptions&); TransitionOptions getBackgroundColorTransition() const; static PropertyValue<std::string> getDefaultBackgroundPattern(); - PropertyValue<std::string> getBackgroundPattern() const; - void setBackgroundPattern(PropertyValue<std::string>); + const PropertyValue<std::string>& getBackgroundPattern() const; + void setBackgroundPattern(const PropertyValue<std::string>&); void setBackgroundPatternTransition(const TransitionOptions&); TransitionOptions getBackgroundPatternTransition() const; static PropertyValue<float> getDefaultBackgroundOpacity(); - PropertyValue<float> getBackgroundOpacity() const; - void setBackgroundOpacity(PropertyValue<float>); + const PropertyValue<float>& getBackgroundOpacity() const; + void setBackgroundOpacity(const PropertyValue<float>&); void setBackgroundOpacityTransition(const TransitionOptions&); TransitionOptions getBackgroundOpacityTransition() const; |