aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/SkRegion.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/SkRegion.cpp b/src/core/SkRegion.cpp
index 0a8ab6557e..dee652ba3b 100644
--- a/src/core/SkRegion.cpp
+++ b/src/core/SkRegion.cpp
@@ -455,18 +455,18 @@ bool SkRegion::intersects(const SkRegion& rgn) const {
/////////////////////////////////////////////////////////////////////////////////////
-bool operator==(const SkRegion& a, const SkRegion& b) {
- SkDEBUGCODE(a.validate();)
+bool SkRegion::operator==(const SkRegion& b) const {
+ SkDEBUGCODE(validate();)
SkDEBUGCODE(b.validate();)
- if (&a == &b) {
+ if (this == &b) {
return true;
}
- if (a.fBounds != b.fBounds) {
+ if (fBounds != b.fBounds) {
return false;
}
- const SkRegion::RunHead* ah = a.fRunHead;
+ const SkRegion::RunHead* ah = fRunHead;
const SkRegion::RunHead* bh = b.fRunHead;
// this catches empties and rects being equal