summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_script_imp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-31 11:54:01 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-31 11:54:02 -0700
commit48d91dd174933b4881fb500b76fb2e3ecbc7f548 (patch)
tree2877c71ea9a22ed34b2addff4590075b5f38b5cf /xfa/fxfa/parser/xfa_script_imp.cpp
parent86fad999ba59b1f8780582cc683b008880aab42e (diff)
downloadpdfium-48d91dd174933b4881fb500b76fb2e3ecbc7f548.tar.xz
xfa_fm2jscontext formatting and cleanup - pt I
Review-Url: https://codereview.chromium.org/2025723002
Diffstat (limited to 'xfa/fxfa/parser/xfa_script_imp.cpp')
-rw-r--r--xfa/fxfa/parser/xfa_script_imp.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/xfa_script_imp.cpp b/xfa/fxfa/parser/xfa_script_imp.cpp
index 159a9eced3..fb42e802be 100644
--- a/xfa/fxfa/parser/xfa_script_imp.cpp
+++ b/xfa/fxfa/parser/xfa_script_imp.cpp
@@ -118,9 +118,8 @@ FX_BOOL CXFA_ScriptContext::RunScript(XFA_SCRIPTLANGTYPE eScriptType,
m_eScriptType = eScriptType;
if (eScriptType == XFA_SCRIPTLANGTYPE_Formcalc) {
if (!m_hFM2JSContext) {
- m_hFM2JSContext = XFA_FM2JS_ContextCreate();
- XFA_FM2JS_ContextInitialize(m_hFM2JSContext, m_pIsolate, m_pJsContext,
- m_pDocument);
+ m_hFM2JSContext =
+ XFA_FM2JS_ContextCreate(m_pIsolate, m_pJsContext, m_pDocument);
}
CFX_WideTextBuf wsJavaScript;
CFX_WideString wsErrorInfo;