diff options
author | Nicolas Pena <npm@chromium.org> | 2016-12-01 15:15:49 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2016-12-01 20:34:10 +0000 |
commit | 991f61869cfba58206cc7ec038fe8d5305bbb2ba (patch) | |
tree | 5935ae9cecb17d07cbd2023cefc429050fdb5319 /xfa/fxfa/fm2js/xfa_program.cpp | |
parent | 8a463c5a1a2252b5fdbff3b5ab07d50273bbc391 (diff) | |
download | pdfium-991f61869cfba58206cc7ec038fe8d5305bbb2ba.tar.xz |
Move Init to constructor in CXFA_FMProgram
Change-Id: I6b2d1a5b06211b32f3053aad4d7ae7501ec8d8f6
Reviewed-on: https://pdfium-review.googlesource.com/2093
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_program.cpp')
-rw-r--r-- | xfa/fxfa/fm2js/xfa_program.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xfa/fxfa/fm2js/xfa_program.cpp b/xfa/fxfa/fm2js/xfa_program.cpp index ac18c15e6d..4d37f74767 100644 --- a/xfa/fxfa/fm2js/xfa_program.cpp +++ b/xfa/fxfa/fm2js/xfa_program.cpp @@ -11,14 +11,11 @@ #include "third_party/base/ptr_util.h" -CXFA_FMProgram::CXFA_FMProgram() {} +CXFA_FMProgram::CXFA_FMProgram(const CFX_WideStringC& wsFormcalc) + : m_parse(wsFormcalc, &m_pErrorInfo) {} CXFA_FMProgram::~CXFA_FMProgram() {} -int32_t CXFA_FMProgram::Init(const CFX_WideStringC& wsFormcalc) { - return m_parse.Init(wsFormcalc, &m_pErrorInfo); -} - int32_t CXFA_FMProgram::ParseProgram() { m_parse.NextToken(); if (!m_pErrorInfo.message.IsEmpty()) |