Index: tests/PDFMetadataAttributeTest.cpp |
diff --git a/tests/PDFMetadataAttributeTest.cpp b/tests/PDFMetadataAttributeTest.cpp |
index 6e7cc248d31e48c580e11a3639f55ec3c77b0862..01351faec31c600cb527b596032a805182a0d47a 100644 |
--- a/tests/PDFMetadataAttributeTest.cpp |
+++ b/tests/PDFMetadataAttributeTest.cpp |
@@ -29,7 +29,7 @@ DEF_TEST(SkPDF_Metadata, r) { |
metadata, nullptr, false); |
doc->beginPage(612.0f, 792.0f); |
doc->close(); |
- sk_sp<SkData> data(pdf.copyToData()); |
+ sk_sp<SkData> data = pdf.detachAsData(); |
static const char* expectations[] = { |
"/Title (A1)", |
"/Author (A2)", |