Index: core/fpdfapi/parser/cpdf_stream.cpp |
diff --git a/core/fpdfapi/parser/cpdf_stream.cpp b/core/fpdfapi/parser/cpdf_stream.cpp |
index de69bfae7be46d6413d94fc71c6c31535e10305f..4f76ec1c63b884aba605658e9ae5e326e15bd161 100644 |
--- a/core/fpdfapi/parser/cpdf_stream.cpp |
+++ b/core/fpdfapi/parser/cpdf_stream.cpp |
@@ -62,8 +62,9 @@ void CPDF_Stream::InitStream(const uint8_t* pData, |
m_pDict->SetNewFor<CPDF_Number>("Length", static_cast<int>(m_dwSize)); |
} |
-void CPDF_Stream::InitStreamFromFile(IFX_SeekableReadStream* pFile, |
- std::unique_ptr<CPDF_Dictionary> pDict) { |
+void CPDF_Stream::InitStreamFromFile( |
+ const CFX_RetainPtr<IFX_SeekableReadStream>& pFile, |
+ std::unique_ptr<CPDF_Dictionary> pDict) { |
m_pDict = std::move(pDict); |
m_bMemoryBased = false; |
m_pDataBuf.reset(); |