Index: core/src/fpdfdoc/doc_formfield.cpp |
diff --git a/core/src/fpdfdoc/doc_formfield.cpp b/core/src/fpdfdoc/doc_formfield.cpp |
index b309e82575c67c28c74460c986394e53ed9d777a..0485d53e36051b1236fe85395d705a55c2f37ee0 100644 |
--- a/core/src/fpdfdoc/doc_formfield.cpp |
+++ b/core/src/fpdfdoc/doc_formfield.cpp |
@@ -102,9 +102,9 @@ FX_BOOL CPDF_FormField::ResetField(FX_BOOL bNotify) { |
switch (m_Type) { |
case CPDF_FormField::CheckBox: |
case CPDF_FormField::RadioButton: { |
- CFX_ByteArray statusArray; |
+ std::vector<bool> statusArray; |
if (bNotify && m_pForm->m_pFormNotify) { |
- SaveCheckedFieldStatus(this, statusArray); |
+ statusArray = SaveCheckedFieldStatus(this); |
} |
int iCount = CountControls(); |
if (iCount) { |
@@ -740,9 +740,9 @@ FX_BOOL CPDF_FormField::CheckControl(int iControlIndex, |
if (!bChecked && pControl->IsChecked() == bChecked) { |
return FALSE; |
} |
- CFX_ByteArray statusArray; |
+ std::vector<bool> statusArray; |
if (bNotify && m_pForm->m_pFormNotify) { |
- SaveCheckedFieldStatus(this, statusArray); |
+ statusArray = SaveCheckedFieldStatus(this); |
} |
CFX_WideString csWExport = pControl->GetExportValue(); |
CFX_ByteString csBExport = PDF_EncodeText(csWExport); |
@@ -817,9 +817,9 @@ FX_BOOL CPDF_FormField::SetCheckValue(const CFX_WideString& value, |
FX_BOOL bDefault, |
FX_BOOL bNotify) { |
ASSERT(GetType() == CheckBox || GetType() == RadioButton); |
- CFX_ByteArray statusArray; |
+ std::vector<bool> statusArray; |
if (bNotify && m_pForm->m_pFormNotify) { |
- SaveCheckedFieldStatus(this, statusArray); |
+ statusArray = SaveCheckedFieldStatus(this); |
} |
int iCount = CountControls(); |
for (int i = 0; i < iCount; i++) { |