diff options
author | 2016-11-03 14:40:50 -0400 | |
---|---|---|
committer | 2016-11-03 19:03:40 +0000 | |
commit | 145dbcd165d9d27298eb8888bc240e2d06a95464 (patch) | |
tree | 461ac2a3fe607bdf1d72fd72ae9451a58490a1bc /fuzz | |
parent | b1c7f88df9ec40b4efb52d314304adfbaf95697c (diff) |
Remove SkAutoTDelete.
Replace with std::unique_ptr.
Change-Id: I5806cfbb30515fcb20e5e66ce13fb5f3b8728176
Reviewed-on: https://skia-review.googlesource.com/4381
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'fuzz')
-rw-r--r-- | fuzz/fuzz.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/fuzz.cpp b/fuzz/fuzz.cpp index e6b95fd066..7aac5dae04 100644 --- a/fuzz/fuzz.cpp +++ b/fuzz/fuzz.cpp @@ -133,7 +133,7 @@ int fuzz_img(sk_sp<SkData> bytes, uint8_t scale, uint8_t mode) { // This is mostly copied from DMSrcSink's CodecSrc::draw method. SkDebugf("Decoding\n"); - SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(bytes)); + std::unique_ptr<SkCodec> codec(SkCodec::NewFromData(bytes)); if (nullptr == codec.get()) { SkDebugf("[terminated] Couldn't create codec.\n"); return 3; |