diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/function/exponential_stops.hpp | 5 | ||||
-rw-r--r-- | include/mbgl/style/function/interval_stops.hpp | 1 |
2 files changed, 2 insertions, 4 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); } diff --git a/include/mbgl/style/function/interval_stops.hpp b/include/mbgl/style/function/interval_stops.hpp index a482a6081c..45e2dc6f2e 100644 --- a/include/mbgl/style/function/interval_stops.hpp +++ b/include/mbgl/style/function/interval_stops.hpp @@ -20,7 +20,6 @@ public: optional<T> evaluate(float z) const { if (stops.empty()) { - assert(false); return {}; } |