Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: core/fpdfdoc/cpdf_formfield.cpp

Issue 2226113002: Add CPDF_Array::IsEmpty(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add CPDF_Array::IsEmpty(). Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_array.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/cpdf_formfield.cpp
diff --git a/core/fpdfdoc/cpdf_formfield.cpp b/core/fpdfdoc/cpdf_formfield.cpp
index 81d217882097e0202aa3ddddc2dde8fe8c60600f..ac6c01bae25a839de40f523ac3af59f9932c1069 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)
« no previous file with comments | « core/fpdfapi/fpdf_parser/include/cpdf_array.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698