Index: core/src/fpdfdoc/doc_utils.cpp |
diff --git a/core/src/fpdfdoc/doc_utils.cpp b/core/src/fpdfdoc/doc_utils.cpp |
index 7db2887834a5ce68f7e7a6b0f4e661245d909196..c2df30a057bfa885c8c5e84dd12dc9f055fd2b5b 100644 |
--- a/core/src/fpdfdoc/doc_utils.cpp |
+++ b/core/src/fpdfdoc/doc_utils.cpp |
@@ -679,14 +679,11 @@ FX_BOOL CPDF_IconFit::GetFittingBounds() { |
return m_pDict->GetBooleanBy("FB"); |
} |
void SaveCheckedFieldStatus(CPDF_FormField* pField, |
- CFX_ByteArray& statusArray) { |
+ std::vector<uint8_t>* statusArray) { |
int iCount = pField->CountControls(); |
for (int i = 0; i < iCount; i++) { |
- CPDF_FormControl* pControl = pField->GetControl(i); |
- if (!pControl) { |
- continue; |
- } |
- statusArray.Add(pControl->IsChecked() ? 1 : 0); |
+ if (CPDF_FormControl* pControl = pField->GetControl(i)) |
+ statusArray->push_back(pControl->IsChecked() ? 1 : 0); |
} |
} |
CPDF_Object* FPDF_GetFieldAttr(CPDF_Dictionary* pFieldDict, |