Fix for Mac compiler problem in 7916
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 1 Mar 2013 14:24:33 +0000 (14:24 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 1 Mar 2013 14:24:33 +0000 (14:24 +0000)
unreviewed

git-svn-id: http://skia.googlecode.com/svn/trunk@7918 2bbb7eff-a529-9590-31e7-b0007b416f81

src/core/SkPictureRecord.cpp

index 3ccde49addbc705f848ee9066e9adfddea70b25e..ae8566bf3a66484e4a46750bb1a58a1eb2820180 100644 (file)
@@ -300,7 +300,7 @@ static bool remove_save_layer1(SkWriter32* writer, int32_t offset,
         return true;
     } 
 
-    SkAutoTDelete<SkPaint> saveLayerPaint = paintDict->unflatten(saveLayerPaintId);
+    SkAutoTDelete<SkPaint> saveLayerPaint(paintDict->unflatten(saveLayerPaintId));
     if (NULL == saveLayerPaint.get() || !is_simple(*saveLayerPaint)) {
         return false;
     }
@@ -313,7 +313,7 @@ static bool remove_save_layer1(SkWriter32* writer, int32_t offset,
     // have different non-255 alphas
     SkColor layerColor = saveLayerPaint->getColor() | 0xFF000000; // force opaque
 
-    SkAutoTDelete<SkPaint> dbmPaint = paintDict->unflatten(dbmPaintId);
+    SkAutoTDelete<SkPaint> dbmPaint(paintDict->unflatten(dbmPaintId));
     if (NULL == dbmPaint.get() || dbmPaint->getColor() != layerColor) {
         return false;
     }