diff options
author | thestig <thestig@chromium.org> | 2016-09-28 17:04:51 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-28 17:04:51 -0700 |
commit | d4c34f208aa3b76c5941395823c6dcf6bb7e2f34 (patch) | |
tree | b0d73710639ddfe2fff5578e7cd6b761cd4052ed /fpdfsdk/pdfwindow/PWL_FontMap.cpp | |
parent | 5ef75ba52b1ce6024d6aa43b03e25824a04b469b (diff) | |
download | pdfium-d4c34f208aa3b76c5941395823c6dcf6bb7e2f34.tar.xz |
Replace std::unique_ptr.reset() with WrapUnique assignment.
fpdfsdk/ edition.
Review-Url: https://codereview.chromium.org/2381723002
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_FontMap.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_FontMap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/pdfwindow/PWL_FontMap.cpp index d49f4ec6c0..9f1c854914 100644 --- a/fpdfsdk/pdfwindow/PWL_FontMap.cpp +++ b/fpdfsdk/pdfwindow/PWL_FontMap.cpp @@ -47,7 +47,7 @@ CPWL_FontMap::~CPWL_FontMap() { CPDF_Document* CPWL_FontMap::GetDocument() { if (!m_pPDFDoc) { if (CPDF_ModuleMgr::Get()) { - m_pPDFDoc.reset(new CPDF_Document(std::unique_ptr<CPDF_Parser>())); + m_pPDFDoc = WrapUnique(new CPDF_Document(std::unique_ptr<CPDF_Parser>())); m_pPDFDoc->CreateNewDoc(); } } |