summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-28 13:29:33 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-28 13:29:33 +0000
commit9bad23500e4aa1f167ae03b469c06b2f317e873a (patch)
treedf3d6cd8a0da74646344149f4965fb94ac8758bb /core/fpdfapi
parent774c90d5ec92d2c58d821c445230d8cb71928dcb (diff)
downloadpdfium-9bad23500e4aa1f167ae03b469c06b2f317e873a.tar.xz
Replace DCHECKs with ASSERTs.
Change-Id: I0f2bf1cb44b4cba872a719f0a75d8776f413812c Reviewed-on: https://pdfium-review.googlesource.com/36250 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/parser/cpdf_document.cpp4
-rw-r--r--core/fpdfapi/parser/cpdf_object_stream.cpp2
2 files changed, 3 insertions, 3 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);
}
diff --git a/core/fpdfapi/parser/cpdf_object_stream.cpp b/core/fpdfapi/parser/cpdf_object_stream.cpp
index 779fbffd83..2d0bd993aa 100644
--- a/core/fpdfapi/parser/cpdf_object_stream.cpp
+++ b/core/fpdfapi/parser/cpdf_object_stream.cpp
@@ -60,7 +60,7 @@ std::unique_ptr<CPDF_ObjectStream> CPDF_ObjectStream::Create(
CPDF_ObjectStream::CPDF_ObjectStream(const CPDF_Stream* obj_stream)
: obj_num_(obj_stream->GetObjNum()),
first_object_offset_(obj_stream->GetDict()->GetIntegerFor("First")) {
- DCHECK(IsObjectsStreamObject(obj_stream));
+ ASSERT(IsObjectsStreamObject(obj_stream));
if (const auto* extends_ref =
ToReference(obj_stream->GetDict()->GetObjectFor("Extends"))) {
extends_obj_num_ = extends_ref->GetRefObjNum();