diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-05-06 12:17:16 +0200 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-05-12 20:46:56 -0700 |
commit | 8dd6da5b5e8c4246b130da9eb1bd967606ae98df (patch) | |
tree | 9d23cf23e8366b270fe086a5f5c94816697d609a /src/mbgl/util/rect.hpp | |
parent | 76b47e801e631832cc064c76276cfcdc3d9e53e0 (diff) | |
download | qtlocation-mapboxgl-8dd6da5b5e8c4246b130da9eb1bd967606ae98df.tar.gz |
don't implicitly cast to bool since this will make comparisons fails
Diffstat (limited to 'src/mbgl/util/rect.hpp')
-rw-r--r-- | src/mbgl/util/rect.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } }; } |