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 /include/core/SkTDArray.h | |
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 'include/core/SkTDArray.h')
-rw-r--r-- | include/core/SkTDArray.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTDArray.h b/include/core/SkTDArray.h index c64d773b07..d5795634c3 100644 --- a/include/core/SkTDArray.h +++ b/include/core/SkTDArray.h @@ -71,7 +71,7 @@ public: return *this; } - friend int operator==(const SkTDArray<T>& a, const SkTDArray<T>& b) { + friend bool operator==(const SkTDArray<T>& a, const SkTDArray<T>& b) { return a.fCount == b.fCount && (a.fCount == 0 || !memcmp(a.fArray, b.fArray, a.fCount * sizeof(T))); |