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:
parent
00835cc550
commit
444a401e3a
@ -117,7 +117,7 @@ SkString* SkObjectParser::PaintToString(const SkPaint& paint) {
|
|||||||
if (NULL != typeface) {
|
if (NULL != typeface) {
|
||||||
SkDynamicMemoryWStream ostream;
|
SkDynamicMemoryWStream ostream;
|
||||||
typeface->serialize(&ostream);
|
typeface->serialize(&ostream);
|
||||||
SkData *data = SkAutoTUnref<SkData>(ostream.copyToData());
|
SkAutoTUnref<SkData> data(ostream.copyToData());
|
||||||
|
|
||||||
SkMemoryStream stream(data);
|
SkMemoryStream stream(data);
|
||||||
SkFontDescriptor descriptor(&stream);
|
SkFontDescriptor descriptor(&stream);
|
||||||
|
Loading…
Reference in New Issue
Block a user