diff options
author | thestig <thestig@chromium.org> | 2016-06-16 16:39:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-16 16:39:25 -0700 |
commit | 2fad11a8d9d2704cd9ee28b02373ad7ce19c65e3 (patch) | |
tree | 5b59239f8b510c660d29eae17110be63d72739a6 /fpdfsdk | |
parent | d931476503bc3ed2f0f6dda1ca2c18ef03bb1511 (diff) | |
download | pdfium-2fad11a8d9d2704cd9ee28b02373ad7ce19c65e3.tar.xz |
Simplify CPDF_TextPage::FindTextlineFlowOrientation().chromium/2773chromium/2772chromium/2771
Review-Url: https://codereview.chromium.org/2066043002
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_flatten.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fpdfsdk/fpdf_flatten.cpp b/fpdfsdk/fpdf_flatten.cpp index bc1a1ccc60..7d2d23a921 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; |