diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-05-16 15:28:15 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-16 15:28:15 +0000 |
commit | adbf41e6bfdf05ed514c561ea7926f45ae02b06c (patch) | |
tree | 7b6cf65121d133594bb833adcf9e599ad27cc8fe /fxjs | |
parent | 99a046acd2d1ce1f093937642b6a9165f8f41986 (diff) | |
download | pdfium-adbf41e6bfdf05ed514c561ea7926f45ae02b06c.tar.xz |
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 <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r-- | fxjs/cfxjse_formcalc_context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |