summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_attachnodelist.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-04 03:31:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-04 03:31:29 +0000
commit185832ce3665ddfe7c3c96b398a4f56ce3eacf62 (patch)
tree98d3bce032a949f5ef79b15b7545f5ed25d16af5 /xfa/fxfa/parser/cxfa_attachnodelist.cpp
parent33591752d2cb14f2e07726ca52afce6efbdc07c9 (diff)
downloadpdfium-185832ce3665ddfe7c3c96b398a4f56ce3eacf62.tar.xz
Remove default params for CXFA_Node::{Insert|Remove}Child
This CL removes the default values and inlines in the call sites as needed. Change-Id: I68925d57b6230400429421ce728dd5524e5fc9a1 Reviewed-on: https://pdfium-review.googlesource.com/17710 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_attachnodelist.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_attachnodelist.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/parser/cxfa_attachnodelist.cpp b/xfa/fxfa/parser/cxfa_attachnodelist.cpp
index 9c0b0fd18e..6340377d4d 100644
--- a/xfa/fxfa/parser/cxfa_attachnodelist.cpp
+++ b/xfa/fxfa/parser/cxfa_attachnodelist.cpp
@@ -23,21 +23,21 @@ int32_t CXFA_AttachNodeList::GetLength() {
bool CXFA_AttachNodeList::Append(CXFA_Node* pNode) {
CXFA_Node* pParent = pNode->GetNodeItem(XFA_NODEITEM_Parent);
if (pParent)
- pParent->RemoveChild(pNode);
+ pParent->RemoveChild(pNode, true);
- return m_pAttachNode->InsertChild(pNode);
+ return m_pAttachNode->InsertChild(pNode, nullptr);
}
bool CXFA_AttachNodeList::Insert(CXFA_Node* pNewNode, CXFA_Node* pBeforeNode) {
CXFA_Node* pParent = pNewNode->GetNodeItem(XFA_NODEITEM_Parent);
if (pParent)
- pParent->RemoveChild(pNewNode);
+ pParent->RemoveChild(pNewNode, true);
return m_pAttachNode->InsertChild(pNewNode, pBeforeNode);
}
bool CXFA_AttachNodeList::Remove(CXFA_Node* pNode) {
- return m_pAttachNode->RemoveChild(pNode);
+ return m_pAttachNode->RemoveChild(pNode, true);
}
CXFA_Node* CXFA_AttachNodeList::Item(int32_t iIndex) {