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 5ead9a5beaee550ffea0d8332a8cdcd08fcbd576..fc050b936929c4631d61c39694ffe05c9b552382 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp |
@@ -129,7 +129,7 @@ FX_BOOL CPDF_ShadingPattern::Load() { |
CPDF_Dictionary* pShadingDict = |
m_pShadingObj ? m_pShadingObj->GetDict() : NULL; |
- if (pShadingDict == NULL) { |
+ if (!pShadingDict) { |
return FALSE; |
} |
if (m_nFuncs) { |
@@ -151,7 +151,7 @@ FX_BOOL CPDF_ShadingPattern::Load() { |
} |
} |
CPDF_Object* pCSObj = pShadingDict->GetElementValue("ColorSpace"); |
- if (pCSObj == NULL) { |
+ if (!pCSObj) { |
return FALSE; |
} |
CPDF_DocPageData* pDocPageData = m_pDocument->GetPageData(); |
@@ -199,7 +199,7 @@ FX_BOOL CPDF_MeshStream::Load(CPDF_Stream* pShadingStream, |
m_CoordMax = m_nCoordBits == 32 ? -1 : (1 << m_nCoordBits) - 1; |
m_CompMax = (1 << m_nCompBits) - 1; |
CPDF_Array* pDecode = pDict->GetArray("Decode"); |
- if (pDecode == NULL || pDecode->GetCount() != 4 + m_nComps * 2) { |
+ if (!pDecode || pDecode->GetCount() != 4 + m_nComps * 2) { |
return FALSE; |
} |
m_xmin = pDecode->GetNumber(0); |