diff options
Diffstat (limited to 'xfa/src/fxfa/src/parser/xfa_document_imp.cpp')
-rw-r--r-- | xfa/src/fxfa/src/parser/xfa_document_imp.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xfa/src/fxfa/src/parser/xfa_document_imp.cpp b/xfa/src/fxfa/src/parser/xfa_document_imp.cpp index 8980ad9535..6cf8f06301 100644 --- a/xfa/src/fxfa/src/parser/xfa_document_imp.cpp +++ b/xfa/src/fxfa/src/parser/xfa_document_imp.cpp @@ -168,15 +168,14 @@ CXFA_Object* CXFA_Document::GetXFAObject(FX_DWORD dwNodeNameHash) { } } CXFA_Node* CXFA_Document::CreateNode(FX_DWORD dwPacket, XFA_ELEMENT eElement) { - XFA_LPCPACKETINFO pPacket = XFA_GetPacketByID(dwPacket); - return CreateNode(pPacket, eElement); + return CreateNode(XFA_GetPacketByID(dwPacket), eElement); } -CXFA_Node* CXFA_Document::CreateNode(XFA_LPCPACKETINFO pPacket, +CXFA_Node* CXFA_Document::CreateNode(const XFA_PACKETINFO* pPacket, XFA_ELEMENT eElement) { if (pPacket == NULL) { return NULL; } - XFA_LPCELEMENTINFO pElement = XFA_GetElementByID(eElement); + const XFA_ELEMENTINFO* pElement = XFA_GetElementByID(eElement); if (pElement && (pElement->dwPackets & pPacket->eName)) { CXFA_Node* pNode = new CXFA_Node(this, pPacket->eName, pElement->eName); if (pNode) { |