diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-05-16 12:17:50 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-16 16:29:23 +0000 |
commit | c0d358ad234843a524a1bcc2a439f08ad0c64aa1 (patch) | |
tree | dfb046a476f5dece9f76764415e6f297591f1829 /xfa/fxfa/parser | |
parent | 2eef64cba5c8e08a9e625f4aba5a7fbdc8e62bad (diff) | |
download | pdfium-c0d358ad234843a524a1bcc2a439f08ad0c64aa1.tar.xz |
Update formcalc return types
Update return types to be bools instead of ints. Make some methods private.
Change-Id: I5d55c48a861f90e9bd116ef835c11cdb515002a6
Reviewed-on: https://pdfium-review.googlesource.com/5553
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser')
-rw-r--r-- | xfa/fxfa/parser/cxfa_scriptcontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/cxfa_scriptcontext.cpp b/xfa/fxfa/parser/cxfa_scriptcontext.cpp index a3aed388be..cf6cb14fb9 100644 --- a/xfa/fxfa/parser/cxfa_scriptcontext.cpp +++ b/xfa/fxfa/parser/cxfa_scriptcontext.cpp @@ -153,7 +153,7 @@ bool CXFA_ScriptContext::RunScript(XFA_SCRIPTLANGTYPE eScriptType, m_pIsolate, m_JsContext.get(), m_pDocument); } CFX_WideTextBuf wsJavaScript; - if (CXFA_FM2JSContext::Translate(wsScript, &wsJavaScript)) { + if (!CXFA_FM2JSContext::Translate(wsScript, &wsJavaScript)) { hRetValue->SetUndefined(); return false; } |