From 8dd6da5b5e8c4246b130da9eb1bd967606ae98df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Wed, 6 May 2015 12:17:16 +0200 Subject: don't implicitly cast to bool since this will make comparisons fails --- src/mbgl/util/rect.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mbgl/util/rect.hpp') diff --git a/src/mbgl/util/rect.hpp b/src/mbgl/util/rect.hpp index 5cc398d821..b5f07eb23d 100644 --- a/src/mbgl/util/rect.hpp +++ b/src/mbgl/util/rect.hpp @@ -16,7 +16,7 @@ struct Rect { return Rect(x * value, y * value, w * value, h * value); } - operator bool() const { return w != 0 && h != 0; } + inline bool hasArea() const { return w != 0 && h != 0; } }; } -- cgit v1.2.1