summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_page.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_page.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_page.cpp')
-rw-r--r--core/fpdfapi/page/cpdf_page.cpp3
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;
}