summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/symbol_layer_properties.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-07-12 19:01:29 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-07-13 11:57:09 +0300
commit174d367699ad647cba46b8e521f25b436c33fee2 (patch)
tree7585ae05b2be0326225af66f5ff91013d6a01ac7 /src/mbgl/style/layers/symbol_layer_properties.hpp
parent06af750d236861e32d047f8cfdb0b766bd174f67 (diff)
downloadqtlocation-mapboxgl-174d367699ad647cba46b8e521f25b436c33fee2.tar.gz
[core] Prefer color aliases for default property values
Diffstat (limited to 'src/mbgl/style/layers/symbol_layer_properties.hpp')
-rw-r--r--src/mbgl/style/layers/symbol_layer_properties.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mbgl/style/layers/symbol_layer_properties.hpp b/src/mbgl/style/layers/symbol_layer_properties.hpp
index a269969cb8..e4560ab486 100644
--- a/src/mbgl/style/layers/symbol_layer_properties.hpp
+++ b/src/mbgl/style/layers/symbol_layer_properties.hpp
@@ -58,15 +58,15 @@ public:
bool recalculate(const CalculationParameters&);
PaintProperty<float> iconOpacity { 1 };
- PaintProperty<Color> iconColor { { 0, 0, 0, 1 } };
- PaintProperty<Color> iconHaloColor { { 0, 0, 0, 0 } };
+ PaintProperty<Color> iconColor { Color::black() };
+ PaintProperty<Color> iconHaloColor { {} };
PaintProperty<float> iconHaloWidth { 0 };
PaintProperty<float> iconHaloBlur { 0 };
PaintProperty<std::array<float, 2>> iconTranslate { {{ 0, 0 }} };
PaintProperty<TranslateAnchorType> iconTranslateAnchor { TranslateAnchorType::Map };
PaintProperty<float> textOpacity { 1 };
- PaintProperty<Color> textColor { { 0, 0, 0, 1 } };
- PaintProperty<Color> textHaloColor { { 0, 0, 0, 0 } };
+ PaintProperty<Color> textColor { Color::black() };
+ PaintProperty<Color> textHaloColor { {} };
PaintProperty<float> textHaloWidth { 0 };
PaintProperty<float> textHaloBlur { 0 };
PaintProperty<std::array<float, 2>> textTranslate { {{ 0, 0 }} };