summaryrefslogtreecommitdiff
path: root/core/fxcrt/xml/cfx_xmldoc.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-04-12 13:14:49 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-12 13:14:49 +0000
commit6d503b875e6f75f0d8b5f29fcf811a89f12ad12d (patch)
treedfe3e6f2125e327e57b6688c9020f698f3accbfa /core/fxcrt/xml/cfx_xmldoc.cpp
parente1a41afbe146c9a976d96828a3a09a8a384741d9 (diff)
downloadpdfium-6d503b875e6f75f0d8b5f29fcf811a89f12ad12d.tar.xz
Cleanup some CFX_XMLParser code
This CL cleans up minor nits in the CFX_XMLParser code. Change-Id: Ie19d12d3dcce16c9ce6088160ecdec3d9855c11f Reviewed-on: https://pdfium-review.googlesource.com/30170 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/xml/cfx_xmldoc.cpp')
-rw-r--r--core/fxcrt/xml/cfx_xmldoc.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/fxcrt/xml/cfx_xmldoc.cpp b/core/fxcrt/xml/cfx_xmldoc.cpp
index 64ed5a98d0..57be180f9a 100644
--- a/core/fxcrt/xml/cfx_xmldoc.cpp
+++ b/core/fxcrt/xml/cfx_xmldoc.cpp
@@ -19,8 +19,7 @@
#include "third_party/base/stl_util.h"
CFX_XMLDoc::CFX_XMLDoc(const RetainPtr<CFX_SeekableStreamProxy>& pStream)
- : m_iStatus(0),
- m_pRoot(pdfium::MakeUnique<CFX_XMLNode>()),
+ : m_pRoot(pdfium::MakeUnique<CFX_XMLNode>()),
m_pXMLParser(pdfium::MakeUnique<CFX_XMLParser>(m_pRoot.get(), pStream)) {
ASSERT(pStream);
@@ -29,11 +28,8 @@ CFX_XMLDoc::CFX_XMLDoc(const RetainPtr<CFX_SeekableStreamProxy>& pStream)
CFX_XMLDoc::~CFX_XMLDoc() {}
-int32_t CFX_XMLDoc::DoLoad() {
- if (m_iStatus < 100)
- m_iStatus = m_pXMLParser->DoParser();
-
- return m_iStatus;
+int32_t CFX_XMLDoc::Load() {
+ return m_pXMLParser->Parse();
}
void CFX_XMLDoc::CloseXML() {