From 62576e24a0e98a73c1396150f1f09acb838080e6 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 11 Apr 2017 13:40:17 -0700 Subject: [core] Revert use of optional, because EdgeInsets has a natural "empty" state --- include/mbgl/util/geo.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/mbgl/util') diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp index 04aa1e1bfa..edd40e73ca 100644 --- a/include/mbgl/util/geo.hpp +++ b/include/mbgl/util/geo.hpp @@ -221,6 +221,9 @@ public: EdgeInsets(const double t, const double l, const double b, const double r) : top(t), left(l), bottom(b), right(r) {} + bool isFlush() const { + return top == 0 && left == 0 && bottom == 0 && right == 0; + } void operator+=(const EdgeInsets& o) { top += o.top; -- cgit v1.2.1