diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-04 12:04:22 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-12-07 11:19:08 -0800 |
commit | cdd129335cc7a58ef57b2258b4cde5b56ce414a6 (patch) | |
tree | e2abffd54e932c6bb988c8f0f57c3c7018e50e69 /src/mbgl/style/paint_property.hpp | |
parent | 0a0007e0acdce85576857bec76e1333d771472f1 (diff) | |
download | qtlocation-mapboxgl-cdd129335cc7a58ef57b2258b4cde5b56ce414a6.tar.gz |
[core] Make Paint/LayoutProperties constructor explicit
Diffstat (limited to 'src/mbgl/style/paint_property.hpp')
-rw-r--r-- | src/mbgl/style/paint_property.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/style/paint_property.hpp b/src/mbgl/style/paint_property.hpp index f6ab430ed9..3fb0a194f0 100644 --- a/src/mbgl/style/paint_property.hpp +++ b/src/mbgl/style/paint_property.hpp @@ -24,7 +24,7 @@ class PaintProperty { public: using Fn = Function<Result>; - PaintProperty(T fallbackValue) + explicit PaintProperty(T fallbackValue) : value(fallbackValue) { values.emplace(ClassID::Fallback, Fn(fallbackValue)); } |