diff options
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(); } |