diff options
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/parser/cfdf_document.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cfdf_document.cpp b/core/fpdfapi/parser/cfdf_document.cpp index d37c8d5457..421af48d80 100644 --- a/core/fpdfapi/parser/cfdf_document.cpp +++ b/core/fpdfapi/parser/cfdf_document.cpp @@ -32,8 +32,7 @@ std::unique_ptr<CFDF_Document> CFDF_Document::CreateNewDoc() { std::unique_ptr<CFDF_Document> CFDF_Document::ParseMemory( pdfium::span<const uint8_t> span) { auto pDoc = pdfium::MakeUnique<CFDF_Document>(); - pDoc->ParseStream( - pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>(span.data(), span.size())); + pDoc->ParseStream(pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>(span)); return pDoc->m_pRootDict ? std::move(pDoc) : nullptr; } |