Index: core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp b/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
index d00b4a79618410f26a8c3d9932eab2978369c03e..711b3da6144c38af79bc5426007edd28cc725afc 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp |
@@ -9,11 +9,7 @@ |
#include "core/fpdfapi/fpdf_parser/include/cpdf_object.h" |
#include "core/fpdfapi/fpdf_parser/include/cpdf_parser.h" |
-CPDF_IndirectObjectHolder::CPDF_IndirectObjectHolder(CPDF_Parser* pParser) |
- : m_pParser(pParser), m_LastObjNum(0) { |
- if (pParser) |
- m_LastObjNum = m_pParser->GetLastObjNum(); |
-} |
+CPDF_IndirectObjectHolder::CPDF_IndirectObjectHolder() : m_LastObjNum(0) {} |
CPDF_IndirectObjectHolder::~CPDF_IndirectObjectHolder() { |
for (const auto& pair : m_IndirectObjs) |
@@ -35,10 +31,7 @@ CPDF_Object* CPDF_IndirectObjectHolder::GetOrParseIndirectObject( |
if (pObj) |
return pObj->GetObjNum() != CPDF_Object::kInvalidObjNum ? pObj : nullptr; |
- if (!m_pParser) |
- return nullptr; |
- |
- pObj = m_pParser->ParseIndirectObject(this, objnum); |
+ pObj = ParseIndirectObject(objnum); |
if (!pObj) |
return nullptr; |
@@ -51,6 +44,10 @@ CPDF_Object* CPDF_IndirectObjectHolder::GetOrParseIndirectObject( |
return pObj; |
} |
+CPDF_Object* CPDF_IndirectObjectHolder::ParseIndirectObject(uint32_t objnum) { |
+ return nullptr; |
+} |
+ |
uint32_t CPDF_IndirectObjectHolder::AddIndirectObject(CPDF_Object* pObj) { |
if (pObj->m_ObjNum) |
return pObj->m_ObjNum; |