From de6088db8403e775e2963ce6e0bd55e5356beb73 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Fri, 30 Oct 2015 16:30:28 -0700 Subject: Merge to XFA: Move a unique_ptr initialisation out of the initialisation list in fsdk_mgr.cpp TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1407103006 . (cherry picked from commit ef26566853fcd014f4b5c4944e480db75afc6729) Review URL: https://codereview.chromium.org/1412793013 . --- fpdfsdk/src/fsdk_mgr.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/src/fsdk_mgr.cpp b/fpdfsdk/src/fsdk_mgr.cpp index d7c0e141ca..9bb603d01f 100644 --- a/fpdfsdk/src/fsdk_mgr.cpp +++ b/fpdfsdk/src/fsdk_mgr.cpp @@ -211,10 +211,8 @@ FX_SYSTEMTIME CFX_SystemHandler::GetLocalTime() { CPDFDoc_Environment::CPDFDoc_Environment(CPDFXFA_Document* pDoc, FPDF_FORMFILLINFO* pFFinfo) - : m_pInfo(pFFinfo), - m_pSDKDoc(NULL), - m_pXFADoc(pDoc), - m_pSysHandler(new CFX_SystemHandler(this)) { + : m_pInfo(pFFinfo), m_pSDKDoc(NULL), m_pXFADoc(pDoc) { + m_pSysHandler.reset(new CFX_SystemHandler(this)); } CPDFDoc_Environment::~CPDFDoc_Environment() { -- cgit v1.2.3