From 20eca1e383b7dce69cd791d42bda3558a3966301 Mon Sep 17 00:00:00 2001 From: Artem Strygin Date: Wed, 27 Jun 2018 18:15:10 +0000 Subject: Rework of loading of CPDF_Document. Improve CPDF_Document interface. Fix relationship between CPDF_Document and CPDF_Parser. This CL changes CPDF_Document to internally create the CPDF_Parser and removes the need for the CPDF_Parser to know about the CPDF_Document. Change-Id: Iec7aef19575c90f30b9a6c919dfd4f4417e4caf2 Reviewed-on: https://pdfium-review.googlesource.com/35630 Commit-Queue: Art Snake Reviewed-by: dsinclair --- fpdfsdk/pwl/cpwl_font_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk/pwl') diff --git a/fpdfsdk/pwl/cpwl_font_map.cpp b/fpdfsdk/pwl/cpwl_font_map.cpp index f60e7d2fb1..47365f8f42 100644 --- a/fpdfsdk/pwl/cpwl_font_map.cpp +++ b/fpdfsdk/pwl/cpwl_font_map.cpp @@ -50,7 +50,7 @@ CPWL_FontMap::~CPWL_FontMap() { CPDF_Document* CPWL_FontMap::GetDocument() { if (!m_pPDFDoc) { if (CPDF_ModuleMgr::Get()) { - m_pPDFDoc = pdfium::MakeUnique(nullptr); + m_pPDFDoc = pdfium::MakeUnique(); m_pPDFDoc->CreateNewDoc(); } } -- cgit v1.2.3