From ef26566853fcd014f4b5c4944e480db75afc6729 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Fri, 30 Oct 2015 16:24:25 -0700 Subject: 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 . --- fpdfsdk/src/fsdk_mgr.cpp | 6 ++---- 1 file 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() { -- cgit v1.2.3