summaryrefslogtreecommitdiff
path: root/fxjs
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-07-03 21:19:36 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-07-03 21:19:36 +0000
commit94f7b75b4d5d1988e599ed4a9a7b6cf451994f1d (patch)
tree07ca359834ff9be154b84bad91408bd327f241ac /fxjs
parent57e594f047f86bfa4d26864e993ce330ad66bfcd (diff)
downloadpdfium-94f7b75b4d5d1988e599ed4a9a7b6cf451994f1d.tar.xz
Use unowned ptr to Node from outside XFA node tree.chromium/3481
Change-Id: Idcd992224fc5411c97f3001293af83a6c581e695 Reviewed-on: https://pdfium-review.googlesource.com/36991 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs')
-rw-r--r--fxjs/cfxjse_engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cfxjse_engine.cpp b/fxjs/cfxjse_engine.cpp
index 78b152b9dd..9b54555a21 100644
--- a/fxjs/cfxjse_engine.cpp
+++ b/fxjs/cfxjse_engine.cpp
@@ -624,7 +624,7 @@ bool CFXJSE_Engine::ResolveObjects(CXFA_Object* refObject,
dwStyles |= XFA_RESOLVENODE_Bind;
findObjects.clear();
findObjects.push_back(
- m_ResolveProcessor->GetNodeHelper()->m_pAllStartParent);
+ m_ResolveProcessor->GetNodeHelper()->m_pAllStartParent.Get());
continue;
}
break;
@@ -724,7 +724,7 @@ bool CFXJSE_Engine::ResolveObjects(CXFA_Object* refObject,
XFA_RESOLVENODE_BindNew)) {
CXFA_NodeHelper* helper = m_ResolveProcessor->GetNodeHelper();
if (helper->m_pCreateParent)
- resolveNodeRS->objects.push_back(helper->m_pCreateParent);
+ resolveNodeRS->objects.push_back(helper->m_pCreateParent.Get());
else
helper->CreateNode_ForCondition(rndFind.m_wsCondition);