diff options
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidgethandler.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffwidgethandler.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xfa/fxfa/cxfa_ffwidgethandler.cpp b/xfa/fxfa/cxfa_ffwidgethandler.cpp index a820db8083..eb9a4ca63a 100644 --- a/xfa/fxfa/cxfa_ffwidgethandler.cpp +++ b/xfa/fxfa/cxfa_ffwidgethandler.cpp @@ -234,11 +234,11 @@ int32_t CXFA_FFWidgetHandler::ProcessEvent(CXFA_Node* pNode, switch (pParam->m_eType) { case XFA_EVENT_Calculate: - return pNode->ProcessCalculate(m_pDocView); + return pNode->ProcessCalculate(m_pDocView.Get()); case XFA_EVENT_Validate: if (m_pDocView->GetDoc()->GetDocEnvironment()->IsValidationsEnabled( m_pDocView->GetDoc())) { - return pNode->ProcessValidate(m_pDocView, 0); + return pNode->ProcessValidate(m_pDocView.Get(), 0); } return XFA_EVENTERROR_Disabled; case XFA_EVENT_InitCalculate: { @@ -247,15 +247,14 @@ int32_t CXFA_FFWidgetHandler::ProcessEvent(CXFA_Node* pNode, return XFA_EVENTERROR_NotExist; if (pNode->IsUserInteractive()) return XFA_EVENTERROR_Disabled; - return pNode->ExecuteScript(m_pDocView, calc->GetScriptIfExists(), + return pNode->ExecuteScript(m_pDocView.Get(), calc->GetScriptIfExists(), pParam); } default: break; } - int32_t iRet = pNode->ProcessEvent(m_pDocView, - gs_EventActivity[pParam->m_eType], pParam); - return iRet; + return pNode->ProcessEvent(m_pDocView.Get(), + gs_EventActivity[pParam->m_eType], pParam); } CXFA_FFWidget* CXFA_FFWidgetHandler::CreateWidget(CXFA_FFWidget* hParent, |