diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-04-05 16:34:44 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-05 21:11:15 +0000 |
commit | 480f62b8350f17a398cbf4f02b76b4368a62dce6 (patch) | |
tree | 210b891000969392c87506f2c4b616a3f66d6d08 /xfa/fde/xml/cfde_xmlparser.cpp | |
parent | 3c67fbdbabee4195b72d1bd1d568cad3ecad9e96 (diff) | |
download | pdfium-480f62b8350f17a398cbf4f02b76b4368a62dce6.tar.xz |
Merge XMLSyntaxParser Init into constructor
This Init() method is always called right after construction. Merge
together for clarity.
Change-Id: Iab5bfe937e82b7a310e373dd139399bc1be7cea6
Reviewed-on: https://pdfium-review.googlesource.com/3814
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/xml/cfde_xmlparser.cpp')
-rw-r--r-- | xfa/fde/xml/cfde_xmlparser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fde/xml/cfde_xmlparser.cpp b/xfa/fde/xml/cfde_xmlparser.cpp index f4d2a0f113..5b8993de1b 100644 --- a/xfa/fde/xml/cfde_xmlparser.cpp +++ b/xfa/fde/xml/cfde_xmlparser.cpp @@ -20,13 +20,12 @@ CFDE_XMLParser::CFDE_XMLParser(CFDE_XMLNode* pParent, m_dwCheckStatus(0), m_dwCurrentCheckStatus(0), m_pStream(pStream), - m_pParser(pdfium::MakeUnique<CFDE_XMLSyntaxParser>()), + m_pParser(pdfium::MakeUnique<CFDE_XMLSyntaxParser>(m_pStream)), m_pParent(pParent), m_pChild(nullptr), m_syntaxParserResult(FDE_XmlSyntaxResult::None) { ASSERT(m_pParent && m_pStream); m_NodeStack.push(m_pParent); - m_pParser->Init(m_pStream, 32 * 1024); } CFDE_XMLParser::~CFDE_XMLParser() {} |