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:
reed@google.com 2013-03-13 21:28:44 +00:00
parent c3413d6f41
commit 2863f082f2

View File

@ -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) {