diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-20 19:55:42 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-07-20 19:55:42 +0000 |
commit | b530ef5869c5c64af8f3b3c62ed7711fe4325c9c (patch) | |
tree | 24dc8b9ae883ea977ba9b2127cf8e371d718e97c /src | |
parent | 1feb33068b1313d2647c50b90ae8e0a3d510db2e (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 'src')
-rw-r--r-- | src/core/SkPaint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkPaint.cpp b/src/core/SkPaint.cpp index dbb8ecaad8..d39a65044a 100644 --- a/src/core/SkPaint.cpp +++ b/src/core/SkPaint.cpp @@ -138,8 +138,8 @@ SkPaint& SkPaint::operator=(const SkPaint& src) { return *this; } -int operator==(const SkPaint& a, const SkPaint& b) { - return memcmp(&a, &b, sizeof(a)) == 0; +bool operator==(const SkPaint& a, const SkPaint& b) { + return !memcmp(&a, &b, sizeof(a)); } void SkPaint::reset() { |