From 9b0a59d659d8083802385649ba74370d65c41e36 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 2 Feb 2016 15:25:54 -0800 Subject: Kill CFX_ByteArray in master. (Many more uses in XFA). R=thestig@chromium.org Review URL: https://codereview.chromium.org/1653253002 . --- fpdfsdk/include/fsdk_baseform.h | 3 +-- fpdfsdk/src/fsdk_baseform.cpp | 12 ++++-------- 2 files changed, 5 insertions(+), 10 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/include/fsdk_baseform.h b/fpdfsdk/include/fsdk_baseform.h index 0290ef021d..f81f576cd0 100644 --- a/fpdfsdk/include/fsdk_baseform.h +++ b/fpdfsdk/include/fsdk_baseform.h @@ -238,8 +238,7 @@ class CPDFSDK_InterForm : public CPDF_FormNotify { int BeforeSelectionChange(const CPDF_FormField* pField, CFX_WideString& csValue) override; int AfterSelectionChange(const CPDF_FormField* pField) override; - int AfterCheckedStatusChange(const CPDF_FormField* pField, - const CFX_ByteArray& statusArray) override; + void AfterCheckedStatusChange(CPDF_FormField* pField) override; int BeforeFormReset(const CPDF_InterForm* pForm) override; int AfterFormReset(const CPDF_InterForm* pForm) override; int BeforeFormImportData(const CPDF_InterForm* pForm) override; diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp index 46aa1f3d85..f2eb3978f3 100644 --- a/fpdfsdk/src/fsdk_baseform.cpp +++ b/fpdfsdk/src/fsdk_baseform.cpp @@ -2009,16 +2009,12 @@ int CPDFSDK_InterForm::AfterSelectionChange(const CPDF_FormField* pField) { return 0; } -int CPDFSDK_InterForm::AfterCheckedStatusChange( - const CPDF_FormField* pField, - const CFX_ByteArray& statusArray) { - CPDF_FormField* pFormField = (CPDF_FormField*)pField; - int nType = pFormField->GetFieldType(); +void CPDFSDK_InterForm::AfterCheckedStatusChange(CPDF_FormField* pField) { + int nType = pField->GetFieldType(); if (nType == FIELDTYPE_CHECKBOX || nType == FIELDTYPE_RADIOBUTTON) { - OnCalculate(pFormField); - UpdateField(pFormField); + OnCalculate(pField); + UpdateField(pField); } - return 0; } int CPDFSDK_InterForm::BeforeFormReset(const CPDF_InterForm* pForm) { -- cgit v1.2.3