summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_structelement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpdf_structelement.cpp')
-rw-r--r--core/fpdfdoc/cpdf_structelement.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/fpdfdoc/cpdf_structelement.cpp b/core/fpdfdoc/cpdf_structelement.cpp
index 0b0b542852..13985b8fed 100644
--- a/core/fpdfdoc/cpdf_structelement.cpp
+++ b/core/fpdfdoc/cpdf_structelement.cpp
@@ -14,7 +14,6 @@
#include "core/fpdfapi/parser/cpdf_reference.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
#include "core/fpdfdoc/cpdf_structtree.h"
-#include "third_party/base/stl_util.h"
CPDF_StructKid::CPDF_StructKid()
: m_Type(Invalid),
@@ -45,11 +44,11 @@ CPDF_StructElement::CPDF_StructElement(CPDF_StructTree* pTree,
CPDF_StructElement::~CPDF_StructElement() = default;
-int CPDF_StructElement::CountKids() const {
- return pdfium::CollectionSize<int>(m_Kids);
+size_t CPDF_StructElement::CountKids() const {
+ return m_Kids.size();
}
-CPDF_StructElement* CPDF_StructElement::GetKidIfElement(int index) const {
+CPDF_StructElement* CPDF_StructElement::GetKidIfElement(size_t index) const {
return m_Kids[index].m_Type == CPDF_StructKid::Element
? m_Kids[index].m_pElement.Get()
: nullptr;