diff options
author | jaepark <jaepark@google.com> | 2016-08-08 15:45:58 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-08 15:45:58 -0700 |
commit | 727da4f329956406b936ba9c0bc49ab2d32db67e (patch) | |
tree | 4674c2a886b49b583232df7dcd52989b5328bf33 /core/fpdfdoc | |
parent | e1e7bd037538c6b31537fc0e3e01c508dab68132 (diff) | |
download | pdfium-727da4f329956406b936ba9c0bc49ab2d32db67e.tar.xz |
Add CPDF_Array::IsEmpty().
Using IsEmpty() is more readable than using GetCount() == 0.
Review-Url: https://codereview.chromium.org/2226113002
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r-- | core/fpdfdoc/cpdf_formfield.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_formfield.cpp b/core/fpdfdoc/cpdf_formfield.cpp index 81d2178820..ac6c01bae2 100644 --- a/core/fpdfdoc/cpdf_formfield.cpp +++ b/core/fpdfdoc/cpdf_formfield.cpp @@ -887,7 +887,7 @@ FX_BOOL CPDF_FormField::SelectOption(int iOptIndex, if (bSelected) pArray->AddInteger(iOptIndex); - if (pArray->GetCount() == 0) + if (pArray->IsEmpty()) m_pDict->RemoveAt("I"); } if (bNotify) |