diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-29 11:33:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-29 21:20:58 +0100 |
commit | 67df0664609336faf205f80fdb5115d9edb985c3 (patch) | |
tree | 55ff1494e6e56d5422774cdb4bb411d98cf19605 /framework/source/uielement | |
parent | 99eb1ede7d68091cc35ad2473d7d3f9893833448 (diff) |
nothing consumes this value set with SetUserValue
the GetUserValue was removed in...
commit b90296a32bc97bd5038ee2dd262c1d1ee63f3c96
Date: Mon Jun 19 10:42:18 2006 +0000
INTEGRATION: CWS warnings01 (1.13.32); FILE MERGED
2006/05/29 07:55:08 sb 1.13.32.5: #i53898# Made code warning-free and/or compile at all after resync to SRC680m170.
2006/05/23 16:14:01 sb 1.13.32.4: RESYNC: (1.14-1.15); FILE MERGED
2006/01/25 17:36:29 sb 1.13.32.3: RESYNC: (1.13-1.14); FILE MERGED
2005/11/16 15:20:46 pl 1.13.32.2: #i55991# removed warnings
2005/10/28 14:48:46 cd 1.13.32.1: #i55991# Warning free code changes for gcc
Change-Id: If2519a7826ab5fa9dd605218a51b2f7622231d1f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126046
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'framework/source/uielement')
-rw-r--r-- | framework/source/uielement/toolbarsmenucontroller.cxx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/framework/source/uielement/toolbarsmenucontroller.cxx b/framework/source/uielement/toolbarsmenucontroller.cxx index fe0c684c51b6..b7096c075605 100644 --- a/framework/source/uielement/toolbarsmenucontroller.cxx +++ b/framework/source/uielement/toolbarsmenucontroller.cxx @@ -43,14 +43,12 @@ #include <comphelper/propertyvalue.hxx> #include <officecfg/Office/Common.hxx> -#include <vcl/menu.hxx> #include <vcl/svapp.hxx> #include <vcl/image.hxx> #include <vcl/settings.hxx> #include <vcl/commandinfoprovider.hxx> #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> -#include <toolkit/awt/vclxmenu.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <vcl/window.hxx> #include <unotools/cmdoptions.hxx> @@ -397,15 +395,6 @@ void ToolbarsMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > co if ( aSortedTbs[i].bVisible ) m_xPopupMenu->checkItem( nIndex, true ); - { - SolarMutexGuard aGuard; - VCLXPopupMenu* pXPopupMenu = static_cast<VCLXPopupMenu *>(comphelper::getFromUnoTunnel<VCLXMenu>( m_xPopupMenu )); - PopupMenu* pVCLPopupMenu = pXPopupMenu ? static_cast<PopupMenu *>(pXPopupMenu->GetMenu()) : nullptr; - assert(pVCLPopupMenu); - if (pVCLPopupMenu) - pVCLPopupMenu->SetUserValue( nIndex, reinterpret_cast<void*>( aSortedTbs[i].bContextSensitive ? 1 : 0 )); - } - // use VCL popup menu pointer to set vital information that are not part of the awt implementation OUStringBuffer aStrBuf( aStaticCmdPart ); |