summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_document.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp
index 91c6b9c6f9..4f699139a3 100644
--- a/core/fpdfapi/parser/cpdf_document.cpp
+++ b/core/fpdfapi/parser/cpdf_document.cpp
@@ -248,7 +248,7 @@ void CPDF_Document::LoadPages() {
}
m_PageList.resize(linearized_header->GetPageCount());
- DCHECK(linearized_header->GetFirstPageNo() < m_PageList.size());
+ ASSERT(linearized_header->GetFirstPageNo() < m_PageList.size());
m_PageList[linearized_header->GetFirstPageNo()] =
linearized_header->GetFirstPageObjNum();
}
@@ -326,7 +326,7 @@ void CPDF_Document::ResetTraversal() {
}
void CPDF_Document::SetParser(std::unique_ptr<CPDF_Parser> pParser) {
- DCHECK(!m_pParser);
+ ASSERT(!m_pParser);
m_pParser = std::move(pParser);
}