diff options
author | Lei Zhang <thestig@chromium.org> | 2017-11-07 14:22:19 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 14:22:19 +0000 |
commit | f2f12b32b601f022b5c10fddd8c4d19d00072630 (patch) | |
tree | 3f23bcaf245b1bc7d331638070a42ae0f40c3908 /core/fpdfapi/page/cpdf_page.cpp | |
parent | a9fee44bc9f6fb09cdd2585a5649ecf2ad03ecdd (diff) | |
download | pdfium-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_page.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_page.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_page.cpp b/core/fpdfapi/page/cpdf_page.cpp index 3a7f8b5805..c6f4fb2a39 100644 --- a/core/fpdfapi/page/cpdf_page.cpp +++ b/core/fpdfapi/page/cpdf_page.cpp @@ -82,8 +82,7 @@ void CPDF_Page::StartParse() { if (m_ParseState == CONTENT_PARSED || m_ParseState == CONTENT_PARSING) return; - m_pParser = pdfium::MakeUnique<CPDF_ContentParser>(); - m_pParser->Start(this); + m_pParser = pdfium::MakeUnique<CPDF_ContentParser>(this); m_ParseState = CONTENT_PARSING; } |