diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-22 20:05:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-22 20:05:32 +0000 |
commit | a27e55e1c8c04fa85e2132e98e92b42d1a084b1f (patch) | |
tree | 615b1f5d4aa301e37fde3886b3ff1a8d9b2f732c /core/fpdfdoc/cpdf_occontext.cpp | |
parent | e6dba0dcc2c399e92b2ed7029a5241726f38938f (diff) | |
download | pdfium-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/cpdf_occontext.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_occontext.cpp | 2 |
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 && |