From cdd129335cc7a58ef57b2258b4cde5b56ce414a6 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 4 Dec 2015 12:04:22 -0800 Subject: [core] Make Paint/LayoutProperties constructor explicit --- src/mbgl/style/paint_property.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mbgl/style/paint_property.hpp') 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; - PaintProperty(T fallbackValue) + explicit PaintProperty(T fallbackValue) : value(fallbackValue) { values.emplace(ClassID::Fallback, Fn(fallbackValue)); } -- cgit v1.2.1