summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-12 10:37:53 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-01-12 15:20:54 +0100
commit0b90638e34218190633e4bff1d989b29df9eb067 (patch)
treecd130f63fd0c7f22625bf25887d1846598d3f5ac /framework/source
parentd8133badce2152a2c5bd2872a408bda8fb45fa54 (diff)
cid#1546235 aArgs is never set
Change-Id: I5cdf0cc5031e3636bad4d9fdaa16d724f10c2b75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161965 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/uielement/toolbarsmenucontroller.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx
index dfd30fc664e5..6717a6364529 100644
--- a/framework/source/uielement/toolbarsmenucontroller.cxx
+++ b/framework/source/uielement/toolbarsmenucontroller.cxx
@@ -613,7 +613,6 @@ void SAL_CALL ToolbarsMenuController::itemSelected( const css::awt::MenuEvent& r
else if ( aCmd.indexOf( STATIC_CMD_PART ) < 0 )
{
URL aTargetURL;
- Sequence<PropertyValue> aArgs;
aTargetURL.Complete = aCmd;
xURLTransformer->parseStrict( aTargetURL );
@@ -623,7 +622,6 @@ void SAL_CALL ToolbarsMenuController::itemSelected( const css::awt::MenuEvent& r
ExecuteInfo* pExecuteInfo = new ExecuteInfo;
pExecuteInfo->xDispatch = xDispatchProvider->queryDispatch(aTargetURL, OUString(), 0);
pExecuteInfo->aTargetURL = aTargetURL;
- pExecuteInfo->aArgs = aArgs;
Application::PostUserEvent( LINK(nullptr, ToolbarsMenuController, ExecuteHdl_Impl), pExecuteInfo );
}
}
@@ -766,7 +764,7 @@ IMPL_STATIC_LINK( ToolbarsMenuController, ExecuteHdl_Impl, void*, p, void )
// elements if a component gets detached from its frame!
if ( pExecuteInfo->xDispatch.is() )
{
- pExecuteInfo->xDispatch->dispatch( pExecuteInfo->aTargetURL, pExecuteInfo->aArgs );
+ pExecuteInfo->xDispatch->dispatch(pExecuteInfo->aTargetURL, Sequence<PropertyValue>());
}
}
catch ( const Exception& )