From 073ecf4192469ee4485c826dcee0cb8ece1b94a2 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 11 Oct 2018 16:56:00 +0000 Subject: Rename InterForm classes to InteractiveForm. Shorten some names to try to avoid CPDF_InteractiveForm* pInteractiveForm = GetInteractiveForm(); Change-Id: I77fafd6c4cce20aa46908830afde12f87784680e Reviewed-on: https://pdfium-review.googlesource.com/c/43815 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- fxjs/cjs_publicmethods.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fxjs/cjs_publicmethods.cpp') diff --git a/fxjs/cjs_publicmethods.cpp b/fxjs/cjs_publicmethods.cpp index fb2df6a716..2e0603c982 100644 --- a/fxjs/cjs_publicmethods.cpp +++ b/fxjs/cjs_publicmethods.cpp @@ -1584,9 +1584,9 @@ CJS_Result CJS_PublicMethods::AFSimple_Calculate( if ((params[1].IsEmpty() || !params[1]->IsArray()) && !params[1]->IsString()) return CJS_Result::Failure(JSMessage::kParamError); - CPDFSDK_InterForm* pReaderInterForm = - pRuntime->GetFormFillEnv()->GetInterForm(); - CPDF_InterForm* pInterForm = pReaderInterForm->GetInterForm(); + CPDFSDK_InteractiveForm* pReaderForm = + pRuntime->GetFormFillEnv()->GetInteractiveForm(); + CPDF_InteractiveForm* pForm = pReaderForm->GetInteractiveForm(); WideString sFunction = pRuntime->ToWideString(params[0]); double dValue = wcscmp(sFunction.c_str(), L"PRD") == 0 ? 1.0 : 0.0; @@ -1598,8 +1598,8 @@ CJS_Result CJS_PublicMethods::AFSimple_Calculate( WideString wsFieldName = pRuntime->ToWideString(pRuntime->GetArrayElement(FieldNameArray, i)); - for (size_t j = 0; j < pInterForm->CountFields(wsFieldName); ++j) { - CPDF_FormField* pFormField = pInterForm->GetField(j, wsFieldName); + for (size_t j = 0; j < pForm->CountFields(wsFieldName); ++j) { + CPDF_FormField* pFormField = pForm->GetField(j, wsFieldName); if (!pFormField) continue; -- cgit v1.2.3