summaryrefslogtreecommitdiff
path: root/fpdfsdk/src
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2015-10-30 16:30:28 -0700
committerOliver Chang <ochang@chromium.org>2015-10-30 16:30:28 -0700
commitde6088db8403e775e2963ce6e0bd55e5356beb73 (patch)
treef19b92388fdca9aa120b3bd25c1de6369d86001b /fpdfsdk/src
parent247524926e7a52eb373942fa6d35509f20ed1a77 (diff)
downloadpdfium-de6088db8403e775e2963ce6e0bd55e5356beb73.tar.xz
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 .
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r--fpdfsdk/src/fsdk_mgr.cpp6
1 files changed, 2 insertions, 4 deletions
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() {