have reset() return its argument as a convenience
git-svn-id: http://skia.googlecode.com/svn/trunk@8141 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
c3413d6f41
commit
2863f082f2
@ -164,9 +164,10 @@ public:
|
|||||||
|
|
||||||
T* get() const { return fObj; }
|
T* get() const { return fObj; }
|
||||||
|
|
||||||
void reset(T* obj) {
|
T* reset(T* obj) {
|
||||||
SkSafeUnref(fObj);
|
SkSafeUnref(fObj);
|
||||||
fObj = obj;
|
fObj = obj;
|
||||||
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
void swap(SkAutoTUnref* other) {
|
void swap(SkAutoTUnref* other) {
|
||||||
|
Loading…
Reference in New Issue
Block a user