Index: samplecode/DecodeFile.h |
diff --git a/samplecode/DecodeFile.h b/samplecode/DecodeFile.h |
index 801d67ce979b1fbd0ca9d435a5d16a299284b047..b954af63311ee88cb53c4b18ca1cd880037a6828 100644 |
--- a/samplecode/DecodeFile.h |
+++ b/samplecode/DecodeFile.h |
@@ -15,7 +15,7 @@ static inline bool decode_file(const char* filename, SkBitmap* bitmap, |
bool requireUnpremul = false) { |
SkASSERT(kIndex_8_SkColorType != colorType); |
sk_sp<SkData> data(SkData::MakeFromFileName(filename)); |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data)); |
if (!codec) { |
return false; |
} |