summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_resolveprocessor.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-04 18:20:07 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-04 18:20:07 +0000
commit9256ad5784fc437f60fbeb836fe2ecd18e028a5d (patch)
tree484d9e9c4697d50800c574b58d5db4cfa349b27c /fxjs/cfxjse_resolveprocessor.cpp
parent76e336d26e78f6c6b5cdede6bb4b94ebddf3a2b1 (diff)
downloadpdfium-9256ad5784fc437f60fbeb836fe2ecd18e028a5d.tar.xz
Cleanup ResolveObjects params and return
The return value of ResolveObjects is always used as a boolean, so change from int32_t. The XFA_RESOLVENODE_RS object was made a pointer from a ref. Change-Id: I030036c01101680e36f4ddf524b468354a2e6850 Reviewed-on: https://pdfium-review.googlesource.com/20331 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_resolveprocessor.cpp')
-rw-r--r--fxjs/cfxjse_resolveprocessor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/fxjs/cfxjse_resolveprocessor.cpp b/fxjs/cfxjse_resolveprocessor.cpp
index fb7bc555c6..eeeeefcf08 100644
--- a/fxjs/cfxjse_resolveprocessor.cpp
+++ b/fxjs/cfxjse_resolveprocessor.cpp
@@ -714,19 +714,19 @@ void CFXJSE_ResolveProcessor::SetStylesForChild(uint32_t dwParentStyles,
}
int32_t CFXJSE_ResolveProcessor::SetResultCreateNode(
- XFA_RESOLVENODE_RS& resolveNodeRS,
+ XFA_RESOLVENODE_RS* resolveNodeRS,
WideString& wsLastCondition) {
if (m_pNodeHelper->m_pCreateParent)
- resolveNodeRS.objects.push_back(m_pNodeHelper->m_pCreateParent);
+ resolveNodeRS->objects.push_back(m_pNodeHelper->m_pCreateParent);
else
m_pNodeHelper->CreateNode_ForCondition(wsLastCondition);
- resolveNodeRS.dwFlags = m_pNodeHelper->m_iCreateFlag;
- if (resolveNodeRS.dwFlags == XFA_RESOLVENODE_RSTYPE_CreateNodeOne) {
+ resolveNodeRS->dwFlags = m_pNodeHelper->m_iCreateFlag;
+ if (resolveNodeRS->dwFlags == XFA_RESOLVENODE_RSTYPE_CreateNodeOne) {
if (m_pNodeHelper->m_iCurAllStart != -1)
- resolveNodeRS.dwFlags = XFA_RESOLVENODE_RSTYPE_CreateNodeMidAll;
+ resolveNodeRS->dwFlags = XFA_RESOLVENODE_RSTYPE_CreateNodeMidAll;
}
- return pdfium::CollectionSize<int32_t>(resolveNodeRS.objects);
+ return pdfium::CollectionSize<int32_t>(resolveNodeRS->objects);
}
void CFXJSE_ResolveProcessor::SetIndexDataBind(WideString& wsNextCondition,