diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-04 01:34:07 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-04 01:34:07 +0000 |
commit | cf705715c5311057933ac03b395d9ea75b6f0660 (patch) | |
tree | 6ed7800850bd707b66bdb3a4acb5c4206421dbdc /fxjs | |
parent | 6fa9707e5db5454ab5ea1a8349d9e1d7cf2b175c (diff) | |
download | pdfium-cf705715c5311057933ac03b395d9ea75b6f0660.tar.xz |
Remove default values from CXFA_Node::{Remove|Insert|Item}
This CL removes the default values and inlines into the call sites as
needed.
Change-Id: I8ba6acfc99b5db508ce8711108e0676465eda47b
Reviewed-on: https://pdfium-review.googlesource.com/17670
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r-- | fxjs/cjx_node.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp index 17553c940a..dc32e205bf 100644 --- a/fxjs/cjx_node.cpp +++ b/fxjs/cjx_node.cpp @@ -378,7 +378,7 @@ int32_t CJX_Node::InstanceManager_SetInstances(int32_t iDesired) { break; } if (pRemoveInstance->GetNameHash() == dInstanceNameHash) { - GetXFANode()->RemoveItem(pRemoveInstance); + GetXFANode()->RemoveItem(pRemoveInstance, true); iCount--; } } @@ -2510,7 +2510,7 @@ void CJX_Node::Script_InstanceManager_RemoveInstance( return; } CXFA_Node* pRemoveInstance = GetXFANode()->GetItem(iIndex); - GetXFANode()->RemoveItem(pRemoveInstance); + GetXFANode()->RemoveItem(pRemoveInstance, true); CXFA_FFNotify* pNotify = GetDocument()->GetNotify(); if (pNotify) { for (int32_t i = iIndex; i < iCount - 1; i++) { |