Index: src/pdf/SkPDFDocument.cpp |
diff --git a/src/pdf/SkPDFDocument.cpp b/src/pdf/SkPDFDocument.cpp |
index cf312e55fbc3c171b7c7121719066872ed244295..32fffde676fc87db0be9d9ae0a4be1b82c75a4dc 100644 |
--- a/src/pdf/SkPDFDocument.cpp |
+++ b/src/pdf/SkPDFDocument.cpp |
@@ -362,7 +362,7 @@ SkDocument* SkDocument::CreatePDF(SkWStream* stream, |
SkDocument* SkDocument::CreatePDF(const char path[], SkScalar dpi) { |
auto delete_wstream = [](SkWStream* stream, bool) { delete stream; }; |
- SkAutoTDelete<SkFILEWStream> stream(new SkFILEWStream(path)); |
+ std::unique_ptr<SkFILEWStream> stream(new SkFILEWStream(path)); |
return stream->isValid() |
? SkPDFMakeDocument(stream.release(), delete_wstream, dpi, nullptr).release() |
: nullptr; |