diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/style/function.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mbgl/style/function.hpp b/src/mbgl/style/function.hpp index 160f5be390..f28d71ebaa 100644 --- a/src/mbgl/style/function.hpp +++ b/src/mbgl/style/function.hpp @@ -18,8 +18,7 @@ public: using Stop = std::pair<float, T>; using Stops = std::vector<Stop>; - // 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<float, T>; using Stops = std::vector<Stop>; - // TODO: make explicit - /* explicit */ Function(const T& constant) + explicit Function(const T& constant) : stops({{ 0, constant }}) {} explicit Function(const Stops& stops_) |