From c5d5729700a4d145cd298ec52f6f57b2d11aaafe Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Sat, 4 Nov 2017 01:49:37 +0000 Subject: Remove default values from CXFA_Node::{CountChildren|GetChild} This CL removes the default values and inlines into the call sites as needed. Change-Id: I554e9d5ac781003695f90522f9c6c3160653eb59 Reviewed-on: https://pdfium-review.googlesource.com/17572 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- xfa/fxfa/parser/cxfa_node.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_node.h') diff --git a/xfa/fxfa/parser/cxfa_node.h b/xfa/fxfa/parser/cxfa_node.h index d8472eb3e9..fa9bab46ed 100644 --- a/xfa/fxfa/parser/cxfa_node.h +++ b/xfa/fxfa/parser/cxfa_node.h @@ -97,13 +97,12 @@ class CXFA_Node : public CXFA_Object { CXFA_Node* GetModelNode(); void UpdateNameHash(); - int32_t CountChildren(XFA_Element eType, bool bOnlyChild = false); - CXFA_Node* GetChild(int32_t index, - XFA_Element eType, - bool bOnlyChild = false); + int32_t CountChildren(XFA_Element eType, bool bOnlyChild); + CXFA_Node* GetChild(int32_t index, XFA_Element eType, bool bOnlyChild); int32_t InsertChild(int32_t index, CXFA_Node* pNode); bool InsertChild(CXFA_Node* pNode, CXFA_Node* pBeforeNode = nullptr); bool RemoveChild(CXFA_Node* pNode, bool bNotify = true); + CXFA_Node* Clone(bool bRecursive); CXFA_Node* GetNodeItem(XFA_NODEITEM eItem) const; CXFA_Node* GetNodeItem(XFA_NODEITEM eItem, XFA_ObjectType eType) const; -- cgit v1.2.3