Fix obviously disallowed copy that Visual Studio allows.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 18 May 2012 19:12:21 +0000 (19:12 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 18 May 2012 19:12:21 +0000 (19:12 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@4002 2bbb7eff-a529-9590-31e7-b0007b416f81

src/sfnt/SkOTUtils.cpp

index 3e7992f..8d57f85 100644 (file)
@@ -75,7 +75,7 @@ SkData* SkOTUtils::RenameFont(SkStream* fontData,
     size_t newDataSize = originalDataSize + nameTablePhysicalSize;
     
     SK_OT_BYTE* data = static_cast<SK_OT_BYTE*>(sk_malloc_throw(newDataSize));
-    SkAutoTUnref<SkData> rewrittenFontData = SkAutoTUnref<SkData>(SkData::NewFromMalloc(data, newDataSize));
+    SkAutoTUnref<SkData> rewrittenFontData(SkData::NewFromMalloc(data, newDataSize));
 
     if (fontData->read(data, oldNameTableOffset) < oldNameTableOffset) {
         return NULL;