Change SkAutoTUnref usage

https://codereview.appspot.com/7094054/



git-svn-id: http://skia.googlecode.com/svn/trunk@7155 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-01-14 17:40:15 +00:00
parent 00835cc550
commit 444a401e3a

View File

@ -117,7 +117,7 @@ SkString* SkObjectParser::PaintToString(const SkPaint& paint) {
if (NULL != typeface) {
SkDynamicMemoryWStream ostream;
typeface->serialize(&ostream);
SkData *data = SkAutoTUnref<SkData>(ostream.copyToData());
SkAutoTUnref<SkData> data(ostream.copyToData());
SkMemoryStream stream(data);
SkFontDescriptor descriptor(&stream);