Index: core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp |
index 386b7f53fc3d623fd7db6b02c4c1b25643f8ca59..9e256dd50b11e66f607c675ad3ba18b68b6f8336 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp |
@@ -44,7 +44,7 @@ CPDF_TilingPattern::CPDF_TilingPattern(CPDF_Document* pDoc, |
m_pPatternObj = pPatternObj; |
m_pDocument = pDoc; |
CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); |
- ASSERT(pDict != NULL); |
+ ASSERT(pDict); |
m_Pattern2Form = pDict->GetMatrix("Matrix"); |
m_bColored = pDict->GetInteger("PaintType") == 1; |
if (parentMatrix) { |
@@ -88,7 +88,7 @@ CPDF_ShadingPattern::CPDF_ShadingPattern(CPDF_Document* pDoc, |
m_bShadingObj = bShading; |
if (!bShading) { |
CPDF_Dictionary* pDict = m_pPatternObj->GetDict(); |
- ASSERT(pDict != NULL); |
+ ASSERT(pDict); |
m_Pattern2Form = pDict->GetMatrix("Matrix"); |
m_pShadingObj = pDict->GetElementValue("Shading"); |
if (parentMatrix) { |