From ae3a730a4b64fdb9698c753313504bbe174f1519 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 12 Jan 2024 10:54:25 +0000 Subject: cid#1545669 aArgs is never set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I17ebbb58c44cbc4314fef9bfe78ca0fa6c149539 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161967 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/uiview/viewling.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sw/source') diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index a9f64d7bf760..4cf6505b9de2 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -594,7 +594,6 @@ struct ExecuteInfo { uno::Reference< frame::XDispatch > xDispatch; util::URL aTargetURL; - uno::Sequence< PropertyValue > aArgs; }; class AsyncExecute @@ -614,7 +613,7 @@ IMPL_STATIC_LINK( AsyncExecute, ExecuteHdl_Impl, void*, p, void ) // Asynchronous execution as this can lead to our own destruction! // Framework can recycle our current frame and the layout manager disposes all user interface // elements if a component gets detached from its frame! - pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs ); + pExecuteInfo->xDispatch->dispatch(pExecuteInfo->aTargetURL, uno::Sequence()); } catch (const Exception&) { @@ -759,7 +758,6 @@ bool SwView::ExecSpellPopup(const Point& rPt) aURL.Complete = aCommand; xURLTransformer->parseStrict(aURL); - uno::Sequence< beans::PropertyValue > aArgs; xDispatch = xDispatchProvider->queryDispatch( aURL, OUString(), 0 ); if (xDispatch.is()) @@ -768,7 +766,6 @@ bool SwView::ExecSpellPopup(const Point& rPt) ExecuteInfo* pExecuteInfo = new ExecuteInfo; pExecuteInfo->xDispatch = xDispatch; pExecuteInfo->aTargetURL = aURL; - pExecuteInfo->aArgs = aArgs; Application::PostUserEvent( LINK(nullptr, AsyncExecute , ExecuteHdl_Impl), pExecuteInfo ); } } -- cgit