From adbf41e6bfdf05ed514c561ea7926f45ae02b06c Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Wed, 16 May 2018 15:28:15 +0000 Subject: Convert Formcalc ToJavascript to a pointer WideTextBuf This CL converts the WidetextBuf reference to a pointer in the formcalc ToJavaScript methods. Change-Id: Ia05c7255a99a2eaa3d9a57f77580969896ad90a0 Reviewed-on: https://pdfium-review.googlesource.com/32612 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- fxjs/cfxjse_formcalc_context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs') diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp index a6d151b468..6a938a5da7 100644 --- a/fxjs/cfxjse_formcalc_context.cpp +++ b/fxjs/cfxjse_formcalc_context.cpp @@ -6185,12 +6185,12 @@ bool CFXJSE_FormCalcContext::Translate(const WideStringView& wsFormcalc, return false; CXFA_FMToJavaScriptDepth::Reset(); - if (!ast->ToJavaScript(*wsJavascript)) + if (!ast->ToJavaScript(wsJavascript)) return false; wsJavascript->AppendChar(0); - return !CXFA_IsTooBig(*wsJavascript); + return !CXFA_IsTooBig(wsJavascript); } CFXJSE_FormCalcContext::CFXJSE_FormCalcContext(v8::Isolate* pScriptIsolate, -- cgit v1.2.3