summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_formcalc_context.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-08-02 08:31:12 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-02 08:31:12 +0000
commit1da20a5792b1e999616b1112cb7222c9272962c0 (patch)
tree6a6fc19c323b71b7fa167d265f5ef79cda8939b4 /fxjs/cfxjse_formcalc_context.h
parent0548d5946c21ad48360e2fe25ded563625db52a8 (diff)
downloadpdfium-1da20a5792b1e999616b1112cb7222c9272962c0.tar.xz
Simplify CFXJSE_FormCalcContext::unfoldArgs().
Return results instead of writing them to an out parameter. Remove start index which is always 1. Change-Id: I4b969a1e27679fca56b2cde1a901a8967c7fa8ce Reviewed-on: https://pdfium-review.googlesource.com/39092 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_formcalc_context.h')
-rw-r--r--fxjs/cfxjse_formcalc_context.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/fxjs/cfxjse_formcalc_context.h b/fxjs/cfxjse_formcalc_context.h
index f60560315e..e95cc5f98c 100644
--- a/fxjs/cfxjse_formcalc_context.h
+++ b/fxjs/cfxjse_formcalc_context.h
@@ -343,11 +343,9 @@ class CFXJSE_FormCalcContext : public CFXJSE_HostObject {
static bool simpleValueCompare(CFXJSE_Value* pThis,
CFXJSE_Value* firstValue,
CFXJSE_Value* secondValue);
- static void unfoldArgs(
+ static std::vector<std::unique_ptr<CFXJSE_Value>> unfoldArgs(
CFXJSE_Value* pThis,
- CFXJSE_Arguments& args,
- std::vector<std::unique_ptr<CFXJSE_Value>>* resultValues,
- int32_t iStart = 0);
+ CFXJSE_Arguments& args);
static void GetObjectDefaultValue(CFXJSE_Value* pObjectValue,
CFXJSE_Value* pDefaultValue);
static bool SetObjectDefaultValue(CFXJSE_Value* pObjectValue,