Index: fpdfsdk/fpdf_flatten.cpp |
diff --git a/fpdfsdk/fpdf_flatten.cpp b/fpdfsdk/fpdf_flatten.cpp |
index bc1a1ccc60676fba5f5561e85b7c706e6fb2177e..7d2d23a921f53c4f3233a8ea36bec4557687835f 100644 |
--- a/fpdfsdk/fpdf_flatten.cpp |
+++ b/fpdfsdk/fpdf_flatten.cpp |
@@ -48,10 +48,7 @@ void GetContentsRect(CPDF_Document* pDoc, |
std::unique_ptr<CPDF_Page> pPDFPage(new CPDF_Page(pDoc, pDict, false)); |
pPDFPage->ParseContent(); |
- for (auto& pPageObject : *pPDFPage->GetPageObjectList()) { |
- if (!pPageObject) |
- continue; |
- |
+ for (const auto& pPageObject : *pPDFPage->GetPageObjectList()) { |
CFX_FloatRect rc; |
rc.left = pPageObject->m_Left; |
rc.right = pPageObject->m_Right; |