diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-19 19:33:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-20 09:30:56 +0100 |
commit | fdb37b71b563c3ffa90b5b0c4643fdad62b9c67c (patch) | |
tree | c856490fbe74a51ba93c67cda3643e6ac9a96ff2 /framework/source | |
parent | fc5c81ced846adae2dbaccf78105d47b01d92269 (diff) |
cid#1545835 COPY_INSTEAD_OF_MOVE
and
cid#1545830 COPY_INSTEAD_OF_MOVE
cid#1545798 COPY_INSTEAD_OF_MOVE
cid#1545784 COPY_INSTEAD_OF_MOVE
cid#1545753 COPY_INSTEAD_OF_MOVE
cid#1545752 COPY_INSTEAD_OF_MOVE
cid#1545672 COPY_INSTEAD_OF_MOVE
Change-Id: Iaf2f77cb27ae0ea1585416a0c500f7c50d04e3fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161007
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uielement/menubarmanager.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx index 2abd58434827..1f2c25ba085a 100644 --- a/framework/source/uielement/menubarmanager.cxx +++ b/framework/source/uielement/menubarmanager.cxx @@ -1527,11 +1527,10 @@ void MenuBarManager::AddMenu(MenuBarManager* pSubMenuManager,const OUString& _sI Reference< XStatusListener > xSubMenuManager( pSubMenuManager ); m_xFrame->addFrameActionListener( Reference< XFrameActionListener >( xSubMenuManager, UNO_QUERY )); - Reference< XDispatch > xDispatch; std::unique_ptr<MenuItemHandler> pMenuItemHandler(new MenuItemHandler( _nItemId, pSubMenuManager, - xDispatch )); + Reference<XDispatch>() )); pMenuItemHandler->aMenuItemURL = _sItemCommand; m_aMenuItemHandlerVector.push_back( std::move(pMenuItemHandler) ); } |