diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-26 12:14:35 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-26 12:14:35 -0700 |
commit | bf60b29fc07c668022fc06517782aeda25e8246c (patch) | |
tree | e96c1f8ffbe2ce381c3b45ed3da8ac8cf682dc03 /fpdfsdk/src/fsdk_baseform.cpp | |
parent | 56a547dd81202c49d01232c358a28db886fd46ed (diff) | |
download | pdfium-bf60b29fc07c668022fc06517782aeda25e8246c.tar.xz |
Merge to XFA: Cleanup parts of CPDFSDK_AnnotIterator and CPDFSDK_PageView.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1411203007 .
(cherry picked from commit 9b2741829b8a8c511ef0f2f313ff53d77ac96307)
Review URL: https://codereview.chromium.org/1408263005 .
Diffstat (limited to 'fpdfsdk/src/fsdk_baseform.cpp')
-rw-r--r-- | fpdfsdk/src/fsdk_baseform.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp index bad8f3591a..112149370b 100644 --- a/fpdfsdk/src/fsdk_baseform.cpp +++ b/fpdfsdk/src/fsdk_baseform.cpp @@ -3120,7 +3120,7 @@ void CBA_AnnotIterator::GenerateResults() { switch (m_nTabs) { case BAI_STRUCTURE: { - for (int i = 0, sz = m_pPageView->CountAnnots(); i < sz; i++) { + for (size_t i = 0; i < m_pPageView->CountAnnots(); ++i) { CPDFSDK_Annot* pAnnot = m_pPageView->GetAnnot(i); ASSERT(pAnnot != NULL); @@ -3132,7 +3132,7 @@ void CBA_AnnotIterator::GenerateResults() { CPDFSDK_SortAnnots sa; { - for (int i = 0, sz = m_pPageView->CountAnnots(); i < sz; i++) { + for (size_t i = 0; i < m_pPageView->CountAnnots(); ++i) { CPDFSDK_Annot* pAnnot = m_pPageView->GetAnnot(i); ASSERT(pAnnot != NULL); @@ -3211,7 +3211,7 @@ void CBA_AnnotIterator::GenerateResults() { CPDFSDK_SortAnnots sa; { - for (int i = 0, sz = m_pPageView->CountAnnots(); i < sz; i++) { + for (size_t i = 0; i < m_pPageView->CountAnnots(); ++i) { CPDFSDK_Annot* pAnnot = m_pPageView->GetAnnot(i); ASSERT(pAnnot != NULL); |