diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-30 21:48:20 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-30 21:48:20 +0000 |
commit | e06c542ffdc7325cb3c430e59bd0d9df4ddb7776 (patch) | |
tree | 3ca7f1e31c4b103920b6cc14e966b347cc4a8905 /xfa/fxfa/parser/cxfa_dataimporter.cpp | |
parent | c40c5aa2d7f1753dd382c35955deafdaca660020 (diff) | |
download | pdfium-e06c542ffdc7325cb3c430e59bd0d9df4ddb7776.tar.xz |
Make parsers work off XFA_PacketType enum
This CL changes the various parsers to use XFA_PacketType instead of
XFA_XDPPACKET. This just leaves XFA_XDPPACKET for determining if a given
node can be created in a given packet.
Change-Id: I6fd23480c0c780a131d23b64b7c7e9d8684b0220
Reviewed-on: https://pdfium-review.googlesource.com/20013
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_dataimporter.cpp')
-rw-r--r-- | xfa/fxfa/parser/cxfa_dataimporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/parser/cxfa_dataimporter.cpp b/xfa/fxfa/parser/cxfa_dataimporter.cpp index 61daff3698..28d0a8ce2a 100644 --- a/xfa/fxfa/parser/cxfa_dataimporter.cpp +++ b/xfa/fxfa/parser/cxfa_dataimporter.cpp @@ -28,8 +28,8 @@ bool CXFA_DataImporter::ImportData( const RetainPtr<IFX_SeekableStream>& pDataDocument) { auto pDataDocumentParser = pdfium::MakeUnique<CXFA_SimpleParser>(m_pDocument.Get(), false); - if (pDataDocumentParser->StartParse(pDataDocument, XFA_XDPPACKET_Datasets) != - XFA_PARSESTATUS_Ready) { + if (pDataDocumentParser->StartParse( + pDataDocument, XFA_PacketType::Datasets) != XFA_PARSESTATUS_Ready) { return false; } if (pDataDocumentParser->DoParse() < XFA_PARSESTATUS_Done) |