From 145dbcd165d9d27298eb8888bc240e2d06a95464 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Thu, 3 Nov 2016 14:40:50 -0400 Subject: Remove SkAutoTDelete. Replace with std::unique_ptr. Change-Id: I5806cfbb30515fcb20e5e66ce13fb5f3b8728176 Reviewed-on: https://skia-review.googlesource.com/4381 Commit-Queue: Ben Wagner Reviewed-by: Mike Klein --- tests/SerializationTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/SerializationTest.cpp') diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp index 82db03ef1b..0e5e8ec4fa 100644 --- a/tests/SerializationTest.cpp +++ b/tests/SerializationTest.cpp @@ -357,7 +357,7 @@ static void serialize_and_compare_typeface(sk_sp typeface, const cha // Serlialize picture and create its clone from stream. SkDynamicMemoryWStream stream; picture->serialize(&stream); - SkAutoTDelete inputStream(stream.detachAsStream()); + std::unique_ptr inputStream(stream.detachAsStream()); sk_sp loadedPicture(SkPicture::MakeFromStream(inputStream.get())); // Draw both original and clone picture and compare bitmaps -- they should be identical. @@ -648,8 +648,8 @@ DEF_TEST(Serialization, reporter) { static sk_sp copy_picture_via_serialization(SkPicture* src) { SkDynamicMemoryWStream wstream; src->serialize(&wstream); - SkAutoTDelete rstream(wstream.detachAsStream()); - return SkPicture::MakeFromStream(rstream); + std::unique_ptr rstream(wstream.detachAsStream()); + return SkPicture::MakeFromStream(rstream.get()); } struct AnnotationRec { -- cgit v1.2.3