diff options
author | Oliver Chang <ochang@chromium.org> | 2015-10-30 16:24:25 -0700 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2015-10-30 16:24:25 -0700 |
commit | ef26566853fcd014f4b5c4944e480db75afc6729 (patch) | |
tree | a038ac59fa21ab8d37b21ed944c531435f453d00 /fpdfsdk/src/fsdk_mgr.cpp | |
parent | 34c509e0e0fbd64d4380f130c48434b07f60b69e (diff) | |
download | pdfium-ef26566853fcd014f4b5c4944e480db75afc6729.tar.xz |
Move a unique_ptr initialisation out of the initialisation list in fsdk_mgr.cpp
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1407103006 .
Diffstat (limited to 'fpdfsdk/src/fsdk_mgr.cpp')
-rw-r--r-- | fpdfsdk/src/fsdk_mgr.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp index 841bd197e0..2797bc8f9a 100644 --- a/fpdfsdk/src/fsdk_mgr.cpp +++ b/fpdfsdk/src/fsdk_mgr.cpp @@ -210,10 +210,8 @@ FX_SYSTEMTIME CFX_SystemHandler::GetLocalTime() { CPDFDoc_Environment::CPDFDoc_Environment(CPDF_Document* pDoc, FPDF_FORMFILLINFO* pFFinfo) - : m_pInfo(pFFinfo), - m_pSDKDoc(NULL), - m_pPDFDoc(pDoc), - m_pSysHandler(new CFX_SystemHandler(this)) { + : m_pInfo(pFFinfo), m_pSDKDoc(NULL), m_pPDFDoc(pDoc) { + m_pSysHandler.reset(new CFX_SystemHandler(this)); } CPDFDoc_Environment::~CPDFDoc_Environment() { |