From 81ad373a24575985413c142820be8bf945cad71f Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 27 Nov 2017 19:08:26 +0000 Subject: Convert CPDF_StructElement::CountKids to size_t This CL changes CountKids to not used CollectionSize and returns size_t directly. Callers updated as needed. Bug: pdfium:774 Change-Id: I8862218e62cd13be9473fa8116afd29cd3afde04 Reviewed-on: https://pdfium-review.googlesource.com/19510 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- core/fpdfdoc/cpdf_structelement.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfdoc/cpdf_structelement.h') diff --git a/core/fpdfdoc/cpdf_structelement.h b/core/fpdfdoc/cpdf_structelement.h index 57f8aee2e8..51ee93bd54 100644 --- a/core/fpdfdoc/cpdf_structelement.h +++ b/core/fpdfdoc/cpdf_structelement.h @@ -43,8 +43,8 @@ class CPDF_StructElement : public Retainable { const ByteString& GetTitle() const { return m_Title; } CPDF_Dictionary* GetDict() const { return m_pDict.Get(); } - int CountKids() const; - CPDF_StructElement* GetKidIfElement(int index) const; + size_t CountKids() const; + CPDF_StructElement* GetKidIfElement(size_t index) const; std::vector* GetKids() { return &m_Kids; } private: -- cgit v1.2.3