diff options
Diffstat (limited to 'include/mbgl/style/function/exponential_stops.hpp')
-rw-r--r-- | include/mbgl/style/function/exponential_stops.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/mbgl/style/function/exponential_stops.hpp b/include/mbgl/style/function/exponential_stops.hpp index 1c57ec6f5d..b3866c4059 100644 --- a/include/mbgl/style/function/exponential_stops.hpp +++ b/include/mbgl/style/function/exponential_stops.hpp @@ -24,8 +24,7 @@ public: optional<T> evaluate(float z) const { if (stops.empty()) { - assert(false); - return T(); + return {}; } auto it = stops.upper_bound(z); @@ -42,7 +41,7 @@ public: optional<T> evaluate(const Value& value) const { optional<float> z = numericValue<float>(value); if (!z) { - return T(); + return {}; } return evaluate(*z); } |