summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_dataimporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/parser/cxfa_dataimporter.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_dataimporter.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/fxfa/parser/cxfa_dataimporter.cpp b/xfa/fxfa/parser/cxfa_dataimporter.cpp
index c5c23fcfb9..01e95b1c3a 100644
--- a/xfa/fxfa/parser/cxfa_dataimporter.cpp
+++ b/xfa/fxfa/parser/cxfa_dataimporter.cpp
@@ -26,13 +26,12 @@ CXFA_DataImporter::~CXFA_DataImporter() {}
bool CXFA_DataImporter::ImportData(
const RetainPtr<IFX_SeekableStream>& pDataDocument) {
- auto pDataDocumentParser =
- pdfium::MakeUnique<CXFA_SimpleParser>(m_pDocument.Get());
- pDataDocumentParser->StartParse(pDataDocument, XFA_PacketType::Datasets);
- if (pDataDocumentParser->DoParse() < XFA_PARSESTATUS_Done)
+ CXFA_SimpleParser parser(m_pDocument.Get());
+ int status = parser.Parse(pDataDocument, XFA_PacketType::Datasets);
+ if (status < XFA_PARSESTATUS_Done)
return false;
- CXFA_Node* pImportDataRoot = pDataDocumentParser->GetRootNode();
+ CXFA_Node* pImportDataRoot = parser.GetRootNode();
if (!pImportDataRoot)
return false;