Index: core/fpdfapi/fpdf_parser/cpdf_document.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
index b11d0c1b791fbc98cb873e613e652d0be0c42e37..89b41d5820d302d8937cfb915e0a46931a1a5661 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
@@ -483,9 +483,9 @@ int CountPages(CPDF_Dictionary* pPages, |
} // namespace |
-CPDF_Document::CPDF_Document(CPDF_Parser* pParser) |
+CPDF_Document::CPDF_Document(std::unique_ptr<CPDF_Parser> pParser) |
: CPDF_IndirectObjectHolder(), |
- m_pParser(pParser), |
+ m_pParser(std::move(pParser)), |
m_pRootDict(nullptr), |
m_pInfoDict(nullptr), |
m_bLinearized(false), |