From 6d503b875e6f75f0d8b5f29fcf811a89f12ad12d Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 12 Apr 2018 13:14:49 +0000 Subject: 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 Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_simple_parser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xfa/fxfa') diff --git a/xfa/fxfa/parser/cxfa_simple_parser.cpp b/xfa/fxfa/parser/cxfa_simple_parser.cpp index b916b4dfc4..225271fae8 100644 --- a/xfa/fxfa/parser/cxfa_simple_parser.cpp +++ b/xfa/fxfa/parser/cxfa_simple_parser.cpp @@ -341,6 +341,7 @@ void CXFA_SimpleParser::SetFactory(CXFA_Document* pFactory) { int32_t CXFA_SimpleParser::Parse(const RetainPtr& pStream, XFA_PacketType ePacketID) { CloseParser(); + m_pFileRead = pStream; m_pStream = pdfium::MakeRetain(pStream, false); uint16_t wCodePage = m_pStream->GetCodePage(); @@ -353,7 +354,7 @@ int32_t CXFA_SimpleParser::Parse(const RetainPtr& pStream, if (!m_pXMLDoc) return XFA_PARSESTATUS_StatusErr; - int32_t iRet = m_pXMLDoc->DoLoad(); + int32_t iRet = m_pXMLDoc->Load(); if (iRet < 0) return XFA_PARSESTATUS_SyntaxErr; if (iRet < 100) @@ -376,7 +377,7 @@ CFX_XMLNode* CXFA_SimpleParser::ParseXMLData(const ByteString& wsXML) { const_cast(wsXML.raw_str()), wsXML.GetLength()); m_pXMLDoc = pdfium::MakeUnique(pStream); - int32_t iRet = m_pXMLDoc->DoLoad(); + int32_t iRet = m_pXMLDoc->Load(); if (iRet < 0 || iRet >= 100) m_pXMLDoc->CloseXML(); return iRet < 100 ? nullptr : GetDocumentNode(m_pXMLDoc.get()); -- cgit v1.2.3