From 4e7a55ebf491df0999b9fb21aeee259495b943eb Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Sat, 4 Nov 2017 03:32:58 +0000 Subject: Remove flag parameter from CXFA_Node::CreateSamePacketNode The parameter is never changed from the default so, removed and moved the default value into the method as needed. Change-Id: Ifab40ac511b9a0ab879e5c696c6e0b6c84e14541 Reviewed-on: https://pdfium-review.googlesource.com/17616 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_node.cpp | 5 ++--- xfa/fxfa/parser/cxfa_node.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index b46a0bda87..5962e7693f 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -337,10 +337,9 @@ std::vector CXFA_Node::GetNodeList(uint32_t dwTypeFilter, return nodes; } -CXFA_Node* CXFA_Node::CreateSamePacketNode(XFA_Element eType, - uint32_t dwFlags) { +CXFA_Node* CXFA_Node::CreateSamePacketNode(XFA_Element eType) { CXFA_Node* pNode = m_pDocument->CreateNode(m_ePacket, eType); - pNode->SetFlag(dwFlags, true); + pNode->SetFlag(XFA_NodeFlag_Initialized, true); return pNode; } diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index 50fec5ba1b..f3273d6580 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -108,8 +108,7 @@ class CXFA_Node : public CXFA_Object { CXFA_Node* GetNodeItem(XFA_NODEITEM eItem, XFA_ObjectType eType) const; std::vector GetNodeList(uint32_t dwTypeFilter, XFA_Element eTypeFilter); - CXFA_Node* CreateSamePacketNode(XFA_Element eType, - uint32_t dwFlags = XFA_NodeFlag_Initialized); + CXFA_Node* CreateSamePacketNode(XFA_Element eType); CXFA_Node* CloneTemplateToForm(bool bRecursive); CXFA_Node* GetTemplateNode() const; void SetTemplateNode(CXFA_Node* pTemplateNode); -- cgit v1.2.3