From d8a3bc9ce941062fa4dd8cc2d03b16af402adafe Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 24 Oct 2018 21:55:21 +0000 Subject: Use ASSERT() consistently. Replace assert() usage. ASSERT() is PDFium's wrapper for cross-platform wrapper for assert(). Change-Id: Ie2a98a8e1de101f93aa9bf667d6f125d11d129cd Reviewed-on: https://pdfium-review.googlesource.com/c/44539 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fpdfapi/page/cpdf_docpagedata.cpp | 2 +- core/fpdfapi/page/cpdf_shadingpattern.cpp | 2 +- core/fpdfapi/page/cpdf_tilingpattern.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/fpdfapi/page/cpdf_docpagedata.cpp b/core/fpdfapi/page/cpdf_docpagedata.cpp index 2cb87e7213..7b62467304 100644 --- a/core/fpdfapi/page/cpdf_docpagedata.cpp +++ b/core/fpdfapi/page/cpdf_docpagedata.cpp @@ -30,7 +30,7 @@ CPDF_DocPageData::CPDF_DocPageData(CPDF_Document* pPDFDoc) : m_bForceClear(false), m_pPDFDoc(pPDFDoc) { - assert(m_pPDFDoc); + ASSERT(m_pPDFDoc); } CPDF_DocPageData::~CPDF_DocPageData() { diff --git a/core/fpdfapi/page/cpdf_shadingpattern.cpp b/core/fpdfapi/page/cpdf_shadingpattern.cpp index 79ea6f84ec..bb0291dd71 100644 --- a/core/fpdfapi/page/cpdf_shadingpattern.cpp +++ b/core/fpdfapi/page/cpdf_shadingpattern.cpp @@ -33,7 +33,7 @@ CPDF_ShadingPattern::CPDF_ShadingPattern(CPDF_Document* pDoc, : CPDF_Pattern(pDoc, bShading ? nullptr : pPatternObj, parentMatrix), m_bShadingObj(bShading), m_pShadingObj(pPatternObj) { - assert(document()); + ASSERT(document()); if (!bShading) { m_pShadingObj = pattern_obj()->GetDict()->GetDirectObjectFor("Shading"); SetPatternToFormMatrix(); diff --git a/core/fpdfapi/page/cpdf_tilingpattern.cpp b/core/fpdfapi/page/cpdf_tilingpattern.cpp index 3cbfa07fa4..faa7eb8fe2 100644 --- a/core/fpdfapi/page/cpdf_tilingpattern.cpp +++ b/core/fpdfapi/page/cpdf_tilingpattern.cpp @@ -16,7 +16,7 @@ CPDF_TilingPattern::CPDF_TilingPattern(CPDF_Document* pDoc, CPDF_Object* pPatternObj, const CFX_Matrix& parentMatrix) : CPDF_Pattern(pDoc, pPatternObj, parentMatrix) { - assert(document()); + ASSERT(document()); m_bColored = pattern_obj()->GetDict()->GetIntegerFor("PaintType") == 1; SetPatternToFormMatrix(); } -- cgit v1.2.3