summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffdoc.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-30 21:48:20 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-30 21:48:20 +0000
commite06c542ffdc7325cb3c430e59bd0d9df4ddb7776 (patch)
tree3ca7f1e31c4b103920b6cc14e966b347cc4a8905 /xfa/fxfa/cxfa_ffdoc.cpp
parentc40c5aa2d7f1753dd382c35955deafdaca660020 (diff)
downloadpdfium-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/cxfa_ffdoc.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffdoc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffdoc.cpp b/xfa/fxfa/cxfa_ffdoc.cpp
index 02f852f0d8..bf8168d4cc 100644
--- a/xfa/fxfa/cxfa_ffdoc.cpp
+++ b/xfa/fxfa/cxfa_ffdoc.cpp
@@ -169,7 +169,7 @@ CXFA_FFDoc::~CXFA_FFDoc() {
int32_t CXFA_FFDoc::StartLoad() {
m_pNotify = pdfium::MakeUnique<CXFA_FFNotify>(this);
m_pDocumentParser = pdfium::MakeUnique<CXFA_DocumentParser>(m_pNotify.get());
- return m_pDocumentParser->StartParse(m_pStream, XFA_XDPPACKET_XDP);
+ return m_pDocumentParser->StartParse(m_pStream, XFA_PacketType::Xdp);
}
bool XFA_GetPDFContentsFromPDFXML(CFX_XMLNode* pPDFElement,