Index: tests/CodecPriv.h |
diff --git a/tests/CodecPriv.h b/tests/CodecPriv.h |
index 4e42731b0117a1a433ef986fd23869880c3402a0..a5afb09ba4947e5524dc592ad643c6f72e865a82 100644 |
--- a/tests/CodecPriv.h |
+++ b/tests/CodecPriv.h |
@@ -10,9 +10,7 @@ |
#include "SkData.h" |
inline bool decode_memory(const void* mem, size_t size, SkBitmap* bm) { |
- sk_sp<SkData> data(SkData::MakeWithoutCopy(mem, size)); |
- |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(SkData::MakeWithoutCopy(mem, size))); |
if (!codec) { |
return false; |
} |