summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pageobjectholder.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-11-07 14:22:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 14:22:19 +0000
commitf2f12b32b601f022b5c10fddd8c4d19d00072630 (patch)
tree3f23bcaf245b1bc7d331638070a42ae0f40c3908 /core/fpdfapi/page/cpdf_pageobjectholder.cpp
parenta9fee44bc9f6fb09cdd2585a5649ecf2ad03ecdd (diff)
downloadpdfium-f2f12b32b601f022b5c10fddd8c4d19d00072630.tar.xz
Simplify CPDF_ContentParser.
Do more work in the ctor instead of a separate Start() method. Adjust callers and member variables accordingly. Change-Id: I310f27b3102a89e8e7b7ad31affd174f1fbbe500 Reviewed-on: https://pdfium-review.googlesource.com/17793 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pageobjectholder.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_pageobjectholder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.cpp b/core/fpdfapi/page/cpdf_pageobjectholder.cpp
index 4e9da63dea..51a67e8a15 100644
--- a/core/fpdfapi/page/cpdf_pageobjectholder.cpp
+++ b/core/fpdfapi/page/cpdf_pageobjectholder.cpp
@@ -37,8 +37,7 @@ void CPDF_PageObjectHolder::ContinueParse(IFX_PauseIndicator* pPause) {
if (!m_pParser)
return;
- m_pParser->Continue(pPause);
- if (m_pParser->GetStatus() != CPDF_ContentParser::Done)
+ if (m_pParser->Continue(pPause))
return;
m_ParseState = CONTENT_PARSED;