From 6f62ccd50ff85ba6a60ddf47993745739854cd8f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 10 May 2017 13:38:20 -0700 Subject: Check CXFA_FM2JSContext::Translate() return value. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove not useful error parameter. Change-Id: I6f49a51a47c9d7f45e75a585679e15f0414aac26 Reviewed-on: https://pdfium-review.googlesource.com/5254 Commit-Queue: Lei Zhang Reviewed-by: Nicolás Peña --- xfa/fxfa/parser/cxfa_scriptcontext.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/cxfa_scriptcontext.cpp b/xfa/fxfa/parser/cxfa_scriptcontext.cpp index e7697f5fab..a3aed388be 100644 --- a/xfa/fxfa/parser/cxfa_scriptcontext.cpp +++ b/xfa/fxfa/parser/cxfa_scriptcontext.cpp @@ -153,10 +153,7 @@ bool CXFA_ScriptContext::RunScript(XFA_SCRIPTLANGTYPE eScriptType, m_pIsolate, m_JsContext.get(), m_pDocument); } CFX_WideTextBuf wsJavaScript; - CFX_WideString wsErrorInfo; - int32_t iFlags = - CXFA_FM2JSContext::Translate(wsScript, wsJavaScript, wsErrorInfo); - if (iFlags) { + if (CXFA_FM2JSContext::Translate(wsScript, &wsJavaScript)) { hRetValue->SetUndefined(); return false; } -- cgit v1.2.3