diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.h b/core/fpdfapi/parser/cpdf_document.h index 94d20504c5..db659b38c8 100644 --- a/core/fpdfapi/parser/cpdf_document.h +++ b/core/fpdfapi/parser/cpdf_document.h @@ -61,8 +61,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { } CPDF_Parser* GetParser() const { return m_pParser.get(); } - const CPDF_Dictionary* GetRoot() const { return m_pRootDict; } - CPDF_Dictionary* GetRoot() { return m_pRootDict; } + CPDF_Dictionary* GetRoot() const { return m_pRootDict.Get(); } CPDF_Dictionary* GetInfo(); void DeletePage(int iPage); @@ -148,10 +147,7 @@ class CPDF_Document : public CPDF_IndirectObjectHolder { void ResetTraversal(); std::unique_ptr<CPDF_Parser> m_pParser; - - // TODO(tsepez): figure out why tests break if this is an UnownedPtr. - CPDF_Dictionary* m_pRootDict; // Not owned. - + UnownedPtr<CPDF_Dictionary> m_pRootDict; UnownedPtr<CPDF_Dictionary> m_pInfoDict; // Vector of pairs to know current position in the page tree. The index in the |