summaryrefslogtreecommitdiff
path: root/fxjs/cjx_node.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-04 03:32:08 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-04 03:32:08 +0000
commit5e35931f90d83e471e4d215034abb4dcb92fac3a (patch)
tree6e33c19c2d637383d0e8b6ccd1632f66be30943d /fxjs/cjx_node.cpp
parent185832ce3665ddfe7c3c96b398a4f56ce3eacf62 (diff)
downloadpdfium-5e35931f90d83e471e4d215034abb4dcb92fac3a.tar.xz
Remove default values from CXFA_Node::GetNodeList
This CL removes the default values and inlines in the call sites. Change-Id: Iae95653a5d724918c5944f860a0743053e98fe88 Reviewed-on: https://pdfium-review.googlesource.com/17615 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjx_node.cpp')
-rw-r--r--fxjs/cjx_node.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp
index 1052ba7e39..f102f3ae10 100644
--- a/fxjs/cjx_node.cpp
+++ b/fxjs/cjx_node.cpp
@@ -969,8 +969,8 @@ void CJX_Node::Script_NodeClass_OneOfChild(CFXJSE_Value* pValue,
ThrowInvalidPropertyException();
return;
}
- std::vector<CXFA_Node*> properties =
- GetXFANode()->GetNodeList(XFA_NODEFILTER_OneOfProperty);
+ std::vector<CXFA_Node*> properties = GetXFANode()->GetNodeList(
+ XFA_NODEFILTER_OneOfProperty, XFA_Element::Unknown);
if (!properties.empty()) {
pValue->Assign(GetDocument()->GetScriptContext()->GetJSValueFromMap(
properties.front()));