Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(711)

Unified Diff: fpdfsdk/pdfwindow/PWL_FontMap.cpp

Issue 2453163002: Take advantage of implicit std::unique_ptr<>(nulltpr_t) ctor. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/fpdfview.cpp ('k') | xfa/fgas/crt/fgas_memory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/pdfwindow/PWL_FontMap.cpp
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/pdfwindow/PWL_FontMap.cpp
index a6f79e283c157937e4224c158e45096582879c0d..b2a1f2580da52fa8a092d722dbfa13785f98f808 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();
}
}
« no previous file with comments | « fpdfsdk/fpdfview.cpp ('k') | xfa/fgas/crt/fgas_memory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698