aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkRect.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-20 19:55:42 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-07-20 19:55:42 +0000
commitb530ef5869c5c64af8f3b3c62ed7711fe4325c9c (patch)
tree24dc8b9ae883ea977ba9b2127cf8e371d718e97c /include/core/SkRect.h
parent1feb33068b1313d2647c50b90ae8e0a3d510db2e (diff)
have == always return bool, never int
git-svn-id: http://skia.googlecode.com/svn/trunk@1915 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkRect.h')
-rw-r--r--include/core/SkRect.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkRect.h b/include/core/SkRect.h
index 19ee12a596..e57130a458 100644
--- a/include/core/SkRect.h
+++ b/include/core/SkRect.h
@@ -71,12 +71,12 @@ struct SK_API SkIRect {
*/
int height() const { return fBottom - fTop; }
- friend int operator==(const SkIRect& a, const SkIRect& b) {
+ friend bool operator==(const SkIRect& a, const SkIRect& b) {
return !memcmp(&a, &b, sizeof(a));
}
- friend int operator!=(const SkIRect& a, const SkIRect& b) {
- return memcmp(&a, &b, sizeof(a));
+ friend bool operator!=(const SkIRect& a, const SkIRect& b) {
+ return !(a == b);
}
bool is16Bit() const {