From 1da20a5792b1e999616b1112cb7222c9272962c0 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 2 Aug 2018 08:31:12 +0000 Subject: 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 Reviewed-by: Henrique Nakashima --- fxjs/cfxjse_formcalc_context.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fxjs/cfxjse_formcalc_context.h') 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> unfoldArgs( CFXJSE_Value* pThis, - CFXJSE_Arguments& args, - std::vector>* resultValues, - int32_t iStart = 0); + CFXJSE_Arguments& args); static void GetObjectDefaultValue(CFXJSE_Value* pObjectValue, CFXJSE_Value* pDefaultValue); static bool SetObjectDefaultValue(CFXJSE_Value* pObjectValue, -- cgit v1.2.3