Index: src/pdf/SkPDFTypes.cpp |
diff --git a/src/pdf/SkPDFTypes.cpp b/src/pdf/SkPDFTypes.cpp |
index b8727a9145d5ab1c813490b55088068a88184308..5eb5c39c0e1397898b8707dcbb502d68c6e6fd1a 100644 |
--- a/src/pdf/SkPDFTypes.cpp |
+++ b/src/pdf/SkPDFTypes.cpp |
@@ -473,7 +473,7 @@ void SkPDFSharedStream::emitObject( |
SkDynamicMemoryWStream buffer; |
SkDeflateWStream deflateWStream(&buffer); |
// Since emitObject is const, this function doesn't change the dictionary. |
- SkAutoTDelete<SkStreamAsset> dup(fAsset->duplicate()); // Cheap copy |
+ std::unique_ptr<SkStreamAsset> dup(fAsset->duplicate()); // Cheap copy |
SkASSERT(dup); |
SkStreamCopy(&deflateWStream, dup.get()); |
deflateWStream.finalize(); |