diff options
Diffstat (limited to 'core/fpdfdoc/cpdf_structelement.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_structelement.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/core/fpdfdoc/cpdf_structelement.cpp b/core/fpdfdoc/cpdf_structelement.cpp index 13985b8fed..ed5c8c7366 100644 --- a/core/fpdfdoc/cpdf_structelement.cpp +++ b/core/fpdfdoc/cpdf_structelement.cpp @@ -17,7 +17,6 @@ CPDF_StructKid::CPDF_StructKid() : m_Type(Invalid), - m_pDict(nullptr), m_PageObjNum(0), m_RefObjNum(0), m_ContentId(0) {} @@ -28,7 +27,7 @@ CPDF_StructKid::~CPDF_StructKid() = default; CPDF_StructElement::CPDF_StructElement(CPDF_StructTree* pTree, CPDF_StructElement* pParent, - CPDF_Dictionary* pDict) + const CPDF_Dictionary* pDict) : m_pTree(pTree), m_pParent(pParent), m_pDict(pDict), @@ -54,10 +53,10 @@ CPDF_StructElement* CPDF_StructElement::GetKidIfElement(size_t index) const { : nullptr; } -void CPDF_StructElement::LoadKids(CPDF_Dictionary* pDict) { - CPDF_Object* pObj = pDict->GetObjectFor("Pg"); +void CPDF_StructElement::LoadKids(const CPDF_Dictionary* pDict) { + const CPDF_Object* pObj = pDict->GetObjectFor("Pg"); uint32_t PageObjNum = 0; - if (CPDF_Reference* pRef = ToReference(pObj)) + if (const CPDF_Reference* pRef = ToReference(pObj)) PageObjNum = pRef->GetRefObjNum(); CPDF_Object* pKids = pDict->GetDirectObjectFor("K"); |