summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_formfield.cpp
diff options
context:
space:
mode:
authorjaepark <jaepark@google.com>2016-08-08 15:45:58 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-08 15:45:58 -0700
commit727da4f329956406b936ba9c0bc49ab2d32db67e (patch)
tree4674c2a886b49b583232df7dcd52989b5328bf33 /core/fpdfdoc/cpdf_formfield.cpp
parente1e7bd037538c6b31537fc0e3e01c508dab68132 (diff)
downloadpdfium-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/cpdf_formfield.cpp')
-rw-r--r--core/fpdfdoc/cpdf_formfield.cpp2
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)