summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmlparser.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-04-23 21:14:39 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-23 21:14:39 +0000
commit2dca1cbf595618e06547a2c464d82c47b6acace6 (patch)
tree2c58686780911e78526c988bb85f0b4789c852ee /core/fxcrt/xml/cfx_xmlparser.cpp
parent1e95aeadd33fc4a13f5579501f81b6d5edc7cc05 (diff)
downloadpdfium-2dca1cbf595618e06547a2c464d82c47b6acace6.tar.xz
Cleanup CFX_XMLParser initialization
This CL moves most initialization of CFX_XMLParser into the header file and re-organizes the members to group members together better. Change-Id: I49031ea65dc0d68c9b47cffe942c65f488bbaf20 Reviewed-on: https://pdfium-review.googlesource.com/31250 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmlparser.cpp')
-rw-r--r--core/fxcrt/xml/cfx_xmlparser.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/core/fxcrt/xml/cfx_xmlparser.cpp b/core/fxcrt/xml/cfx_xmlparser.cpp
index bf578291e6..357deb069d 100644
--- a/core/fxcrt/xml/cfx_xmlparser.cpp
+++ b/core/fxcrt/xml/cfx_xmlparser.cpp
@@ -59,19 +59,7 @@ bool CFX_XMLParser::IsXMLNameChar(wchar_t ch, bool bFirstChar) {
CFX_XMLParser::CFX_XMLParser(CFX_XMLNode* pParent,
const RetainPtr<IFX_SeekableReadStream>& pStream)
- : m_pParent(pParent),
- m_pChild(nullptr),
- m_iXMLPlaneSize(1024),
- m_Start(0),
- m_End(0),
- m_CurNodeType(FX_XMLNODE_Unknown),
- m_pCurrentBlock(nullptr),
- m_iIndexInBlock(0),
- m_iTextDataLength(0),
- m_syntaxParserResult(FX_XmlSyntaxResult::None),
- m_syntaxParserState(FDE_XmlSyntaxState::Text),
- m_wQuotationMark(0),
- m_iEntityStart(-1) {
+ : m_pParent(pParent) {
ASSERT(m_pParent);
ASSERT(pStream);