Index: fpdfsdk/pdfwindow/PWL_FontMap.cpp |
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/pdfwindow/PWL_FontMap.cpp |
index 96acb78ec2aa0538730af46e8dfd5d3701152b7e..131334ac22b0e401a7069e98b58317d074d0b562 100644 |
--- a/fpdfsdk/pdfwindow/PWL_FontMap.cpp |
+++ b/fpdfsdk/pdfwindow/PWL_FontMap.cpp |
@@ -9,6 +9,7 @@ |
#include "core/fpdfapi/fpdf_font/include/cpdf_font.h" |
#include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" |
#include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
+#include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" |
#include "core/fpdfapi/include/cpdf_modulemgr.h" |
#include "core/fpdfdoc/include/ipvt_fontmap.h" |
#include "fpdfsdk/pdfwindow/PWL_Wnd.h" |
@@ -50,7 +51,7 @@ void CPWL_FontMap::SetSystemHandler(CFX_SystemHandler* pSystemHandler) { |
CPDF_Document* CPWL_FontMap::GetDocument() { |
if (!m_pPDFDoc) { |
if (CPDF_ModuleMgr::Get()) { |
- m_pPDFDoc.reset(new CPDF_Document(nullptr)); |
+ m_pPDFDoc.reset(new CPDF_Document(std::unique_ptr<CPDF_Parser>())); |
m_pPDFDoc->CreateNewDoc(); |
} |
} |