summaryrefslogtreecommitdiff
path: root/core/fpdfdoc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-22 20:05:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-22 20:05:32 +0000
commita27e55e1c8c04fa85e2132e98e92b42d1a084b1f (patch)
tree615b1f5d4aa301e37fde3886b3ff1a8d9b2f732c /core/fpdfdoc
parente6dba0dcc2c399e92b2ed7029a5241726f38938f (diff)
downloadpdfium-a27e55e1c8c04fa85e2132e98e92b42d1a084b1f.tar.xz
Change CPDF_ContentMark to return size_t for counts.
Change-Id: I45468fa7944290fbbe3d2e67f884164ae8d84160 Reviewed-on: https://pdfium-review.googlesource.com/19171 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r--core/fpdfdoc/cpdf_occontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_occontext.cpp b/core/fpdfdoc/cpdf_occontext.cpp
index 069292c65b..e59690996c 100644
--- a/core/fpdfdoc/cpdf_occontext.cpp
+++ b/core/fpdfdoc/cpdf_occontext.cpp
@@ -181,7 +181,7 @@ bool CPDF_OCContext::GetOCGVisible(const CPDF_Dictionary* pOCGDict) {
}
bool CPDF_OCContext::CheckObjectVisible(const CPDF_PageObject* pObj) {
- for (int i = 0; i < pObj->m_ContentMark.CountItems(); i++) {
+ for (size_t i = 0; i < pObj->m_ContentMark.CountItems(); ++i) {
const CPDF_ContentMarkItem& item = pObj->m_ContentMark.GetItem(i);
if (item.GetName() == "OC" &&
item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict &&