summaryrefslogtreecommitdiff
path: root/src/mbgl/style/paint_property.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-12-04 12:04:22 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-12-07 11:19:08 -0800
commitcdd129335cc7a58ef57b2258b4cde5b56ce414a6 (patch)
treee2abffd54e932c6bb988c8f0f57c3c7018e50e69 /src/mbgl/style/paint_property.hpp
parent0a0007e0acdce85576857bec76e1333d771472f1 (diff)
downloadqtlocation-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.hpp2
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));
}