diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-04-09 20:12:05 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-09 20:12:05 +0000 |
commit | 124abf5d68b9fe96bf8a95f239b77fdd47fdc556 (patch) | |
tree | be5f7496c81c12dc593798e9769550836ffc1324 /xfa/fxfa/cxfa_ffdoc.cpp | |
parent | 741d5e1e0a64b85717ad054d3fd8807c66845a50 (diff) | |
download | pdfium-124abf5d68b9fe96bf8a95f239b77fdd47fdc556.tar.xz |
Merge CXFA_DocumentParser::{Start|Do}Parse methods
This CL combines the StartParse and DoParse methods of
CXFA_DocumentParser into a single Parse method since they are always
called together.
Change-Id: I45f38b2730f47c4719ca4f54c32ee8db6f11470d
Reviewed-on: https://pdfium-review.googlesource.com/29991
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffdoc.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffdoc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_ffdoc.cpp b/xfa/fxfa/cxfa_ffdoc.cpp index ad7bbd9531..fd3a1234b0 100644 --- a/xfa/fxfa/cxfa_ffdoc.cpp +++ b/xfa/fxfa/cxfa_ffdoc.cpp @@ -168,9 +168,8 @@ CXFA_FFDoc::~CXFA_FFDoc() { int32_t CXFA_FFDoc::Load() { m_pNotify = pdfium::MakeUnique<CXFA_FFNotify>(this); m_pDocumentParser = pdfium::MakeUnique<CXFA_DocumentParser>(m_pNotify.get()); - m_pDocumentParser->StartParse(m_pStream, XFA_PacketType::Xdp); - int32_t iStatus = m_pDocumentParser->DoParse(); + int32_t iStatus = m_pDocumentParser->Parse(m_pStream, XFA_PacketType::Xdp); if (iStatus != XFA_PARSESTATUS_Done) return iStatus; if (!m_pPDFDoc) |