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..692eb1307f4ad23829a25fc2835bc73a12562e0b 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<uint8_t> statusArray; |
if (bNotify && m_pForm->m_pFormNotify) { |
- SaveCheckedFieldStatus(this, statusArray); |
+ SaveCheckedFieldStatus(this, &statusArray); |
} |
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<uint8_t> statusArray; |
if (bNotify && m_pForm->m_pFormNotify) { |
- SaveCheckedFieldStatus(this, statusArray); |
+ SaveCheckedFieldStatus(this, &statusArray); |
} |
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<uint8_t> statusArray; |
if (bNotify && m_pForm->m_pFormNotify) { |
- SaveCheckedFieldStatus(this, statusArray); |
+ SaveCheckedFieldStatus(this, &statusArray); |
} |
int iCount = CountControls(); |
for (int i = 0; i < iCount; i++) { |