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_)