Move a unique_ptr initialisation out of the initialisation list in fsdk_mgr.cpp
authorOliver Chang <ochang@chromium.org>
Fri, 30 Oct 2015 23:24:25 +0000 (16:24 -0700)
committerOliver Chang <ochang@chromium.org>
Fri, 30 Oct 2015 23:24:25 +0000 (16:24 -0700)
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1407103006 .

fpdfsdk/src/fsdk_mgr.cpp

index 841bd19..2797bc8 100644 (file)
@@ -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() {