diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-27 19:34:46 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-27 19:34:46 +0000 |
commit | e6ccf2578ae04c796a69f3596e4b4730a45da378 (patch) | |
tree | 72fdfbed0d5f4e1c1b8af03869cc10714bb97703 /core/fpdfdoc/cpdf_structtree.h | |
parent | 3fc7fe5e4d8fa257e35e6ae86fc6cf4d6b5016a2 (diff) | |
download | pdfium-e6ccf2578ae04c796a69f3596e4b4730a45da378.tar.xz |
Convert CPDF_StructTree to size_t
This CL removes the use of CollectionSize from CPDF_StructTree and uses
size_t in the callers.
Bug: pdfium:774
Change-Id: I860a51a533642c949c497ca26e74ba064a8aa9ba
Reviewed-on: https://pdfium-review.googlesource.com/19530
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_structtree.h')
-rw-r--r-- | core/fpdfdoc/cpdf_structtree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfdoc/cpdf_structtree.h b/core/fpdfdoc/cpdf_structtree.h index 9f1d50e066..99342fb6de 100644 --- a/core/fpdfdoc/cpdf_structtree.h +++ b/core/fpdfdoc/cpdf_structtree.h @@ -27,8 +27,8 @@ class CPDF_StructTree { explicit CPDF_StructTree(const CPDF_Document* pDoc); ~CPDF_StructTree(); - int CountTopElements() const; - CPDF_StructElement* GetTopElement(int i) const; + size_t CountTopElements() const { return m_Kids.size(); } + CPDF_StructElement* GetTopElement(size_t i) const { return m_Kids[i].Get(); } const CPDF_Dictionary* GetRoleMap() const { return m_pRoleMap.Get(); } const CPDF_Dictionary* GetPage() const { return m_pPage.Get(); } const CPDF_Dictionary* GetTreeRoot() const { return m_pTreeRoot.Get(); } |