Index: core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
index db3966ec175ad912bfefefee28c368dfab0a9a91..c0cdb228f4c745f2390f4b2b270c38f2e3d80514 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page.cpp |
@@ -754,18 +754,17 @@ void CPDF_PageObjects::ContinueParse(IFX_Pause* pPause) |
} |
int CPDF_PageObjects::EstimateParseProgress() const |
{ |
- if (m_pParser == NULL) { |
+ if (!m_pParser) { |
return m_ParseState == PDF_CONTENT_PARSED ? 100 : 0; |
} |
return m_pParser->EstimateProgress(); |
} |
FX_POSITION CPDF_PageObjects::InsertObject(FX_POSITION posInsertAfter, CPDF_PageObject* pNewObject) |
{ |
- if (posInsertAfter == NULL) { |
+ if (!posInsertAfter) { |
return m_ObjectList.AddHead(pNewObject); |
- } else { |
- return m_ObjectList.InsertAfter(posInsertAfter, pNewObject); |
} |
+ return m_ObjectList.InsertAfter(posInsertAfter, pNewObject); |
} |
int CPDF_PageObjects::GetObjectIndex(CPDF_PageObject* pObj) const |
{ |