From 2efb11c89ee200473f5675ba3d3a946d5606e813 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 12 Apr 2018 13:21:48 +0000 Subject: Retrieve the XML tree in the DocumentParser This CL changes the document parser to store the parsed XML tree. That way we no longer need to store the pointer to the CXFA_SimpleParser in the CXFA_DocumentParser. Change-Id: I9272150e73613411cb1bb59c3cf77c7af6cc799d Reviewed-on: https://pdfium-review.googlesource.com/30211 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- fpdfsdk/fpdfxfa/cpdfxfa_context.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fpdfsdk/fpdfxfa/cpdfxfa_context.cpp') diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp index 0ba7f31995..e28561dca1 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_context.cpp @@ -96,8 +96,7 @@ bool CPDFXFA_Context::LoadXFADoc() { return false; } - int iStatus = m_pXFADoc->Load(); - if (iStatus != XFA_PARSESTATUS_Done) { + if (!m_pXFADoc->Load()) { CloseXFADoc(); SetLastError(FPDF_ERR_XFALOAD); return false; -- cgit v1.2.3