aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPictureRecord.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 14:24:33 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 14:24:33 +0000
commit6dd683a4352b91505d915722d18f4a726b5615a2 (patch)
treed77cdc0ecd0d2485993209daf632cdb51786105c /src/core/SkPictureRecord.cpp
parent4310c66ed4bb67c96ec65d8b499b8a9c4deab2ed (diff)
Fix for Mac compiler problem in 7916
unreviewed git-svn-id: http://skia.googlecode.com/svn/trunk@7918 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPictureRecord.cpp')
-rw-r--r--src/core/SkPictureRecord.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index 3ccde49add..ae8566bf3a 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -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;
}