Index: src/pdf/SkPDFMetadata.cpp |
diff --git a/src/pdf/SkPDFMetadata.cpp b/src/pdf/SkPDFMetadata.cpp |
index 8359786afe299fe86918bacbc314c2dc35e6cc47..387bde1be76610922685cc8bdb2b1ef49706c182 100644 |
--- a/src/pdf/SkPDFMetadata.cpp |
+++ b/src/pdf/SkPDFMetadata.cpp |
@@ -28,7 +28,7 @@ static SkString pdf_date(const SkTime::DateTime& dt) { |
} |
SkPDFObject* SkPDFMetadata::createDocumentInformationDict() const { |
- SkAutoTUnref<SkPDFDict> dict(new SkPDFDict); |
+ sk_sp<SkPDFDict> dict(new SkPDFDict); |
static const char* keys[] = { |
"Title", "Author", "Subject", "Keywords", "Creator"}; |
for (const char* key : keys) { |
@@ -86,7 +86,7 @@ SkPDFMetadata::UUID SkPDFMetadata::uuid() const { |
SkPDFObject* SkPDFMetadata::CreatePdfId(const UUID& doc, const UUID& instance) { |
// /ID [ <81b14aafa313db63dbd6f981e49f94f4> |
// <81b14aafa313db63dbd6f981e49f94f4> ] |
- SkAutoTUnref<SkPDFArray> array(new SkPDFArray); |
+ sk_sp<SkPDFArray> array(new SkPDFArray); |
static_assert(sizeof(UUID) == 16, "uuid_size"); |
array->appendString( |
SkString(reinterpret_cast<const char*>(&doc), sizeof(UUID))); |