diff options
Diffstat (limited to 'fpdfsdk/pdfwindow')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_FontMap.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/pdfwindow/PWL_FontMap.cpp index a6f79e283c..b2a1f2580d 100644 --- a/fpdfsdk/pdfwindow/PWL_FontMap.cpp +++ b/fpdfsdk/pdfwindow/PWL_FontMap.cpp @@ -48,8 +48,7 @@ CPWL_FontMap::~CPWL_FontMap() { CPDF_Document* CPWL_FontMap::GetDocument() { if (!m_pPDFDoc) { if (CPDF_ModuleMgr::Get()) { - m_pPDFDoc = - pdfium::MakeUnique<CPDF_Document>(std::unique_ptr<CPDF_Parser>()); + m_pPDFDoc = pdfium::MakeUnique<CPDF_Document>(nullptr); m_pPDFDoc->CreateNewDoc(); } } |