aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-27 18:37:52 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-11-27 18:37:52 +0000
commit68d6bb0c119141b0c8637d0b1b3c8b73c7026933 (patch)
tree4689332f7784a6bae426aecf7192666435190598 /include
parentfa1d4ea044161af2c70b01fc9d527d6a89c03ef9 (diff)
revert prev change to reset
git-svn-id: http://skia.googlecode.com/svn/trunk@6571 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkRefCnt.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/core/SkRefCnt.h b/include/core/SkRefCnt.h
index 2d183cd844..3a0f8be383 100644
--- a/include/core/SkRefCnt.h
+++ b/include/core/SkRefCnt.h
@@ -155,10 +155,8 @@ public:
T* get() const { return fObj; }
void reset(T* obj) {
- if (obj != fObj) {
- SkSafeUnref(fObj);
- fObj = obj;
- }
+ SkSafeUnref(fObj);
+ fObj = obj;
}
void swap(SkAutoTUnref* other) {