[PDF] Fix warnings on Windows.

Review URL: http://codereview.appspot.com/4426064

git-svn-id: http://skia.googlecode.com/svn/trunk@1202 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
vandebo@chromium.org 2011-04-27 18:41:55 +00:00
parent 4b33d28eb3
commit c4654ba2e8

View File

@ -354,9 +354,11 @@ SkPDFImage::SkPDFImage(SkStream* imageData, const SkBitmap& bitmap,
if (config == SkBitmap::kRGB_565_Config) {
SkRefPtr<SkPDFInt> zeroVal = new SkPDFInt(0);
zeroVal->unref(); // SkRefPtr and new both took a reference.
SkRefPtr<SkPDFScalar> scale5Val = new SkPDFScalar(8.2258); // 255/2^5-1
SkRefPtr<SkPDFScalar> scale5Val =
new SkPDFScalar(8.2258f); // 255/2^5-1
scale5Val->unref(); // SkRefPtr and new both took a reference.
SkRefPtr<SkPDFScalar> scale6Val = new SkPDFScalar(4.0476); // 255/2^6-1
SkRefPtr<SkPDFScalar> scale6Val =
new SkPDFScalar(4.0476f); // 255/2^6-1
scale6Val->unref(); // SkRefPtr and new both took a reference.
SkRefPtr<SkPDFArray> decodeValue = new SkPDFArray();
decodeValue->unref(); // SkRefPtr and new both took a reference.