From d4c98cabf3d2a8d224c9ef0acce02f8a6e1695a8 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 21 Apr 2016 14:29:25 -0700 Subject: [PATCH] [core] Make Function constructor explicit --- src/mbgl/style/function.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mbgl/style/function.hpp b/src/mbgl/style/function.hpp index 160f5be39..f28d71eba 100644 --- a/src/mbgl/style/function.hpp +++ b/src/mbgl/style/function.hpp @@ -18,8 +18,7 @@ public: using Stop = std::pair; using Stops = std::vector; - // TODO: make explicit - /* explicit */ Function(const T& constant) + explicit Function(const T& constant) : stops({{ 0, constant }}) {} explicit Function(const Stops& stops_, float base_) @@ -42,8 +41,7 @@ public: using Stop = std::pair; using Stops = std::vector; - // TODO: make explicit - /* explicit */ Function(const T& constant) + explicit Function(const T& constant) : stops({{ 0, constant }}) {} explicit Function(const Stops& stops_)