aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkRefCnt.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-08-26 13:07:48 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-26 13:07:49 -0700
commit385fe4d4b62d7d1dd76116dd570df3290a2f487b (patch)
tree53d982ff238828331e86acd44071a44162a8688c /include/core/SkRefCnt.h
parent5015176adf046ef906a2313b6e6b64b72cc84898 (diff)
Style Change: SkNEW->new; SkDELETE->delete
Diffstat (limited to 'include/core/SkRefCnt.h')
-rw-r--r--include/core/SkRefCnt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index 0462540732..5b83d0bcae 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -109,7 +109,7 @@ private:
*/
virtual void internal_dispose() const {
this->internal_dispose_restore_refcnt_to_1();
- SkDELETE(this);
+ delete this;
}
// The following friends are those which override internal_dispose()
@@ -242,8 +242,8 @@ public:
void ref() const { (void)sk_atomic_fetch_add(&fRefCnt, +1, sk_memory_order_relaxed); }
void unref() const {
if (1 == sk_atomic_fetch_add(&fRefCnt, -1, sk_memory_order_acq_rel)) {
- SkDEBUGCODE(fRefCnt = 1;) // restore the 1 for our destructor's assert
- SkDELETE((const Derived*)this);
+ SkDEBUGCODE(fRefCnt = 1;) // restore the 1 for our destructor's assert
+ delete (const Derived*)this;
}
}
void deref() const { this->unref(); }