diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-12-12 12:38:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-12-12 15:58:50 +0100 |
commit | 44680910c15223c83f3681f282475e54f134cbdd (patch) | |
tree | d56875c642f5268ae941bdd6fdc5a42a904eb841 | |
parent | 4304856bfbc7f2a1a5f609b90e404e103268598f (diff) |
only use css::awt::XPopupMenu methods
Change-Id: Ibd3c54b91e757dbca17a4b95462cbd0b7fa16f36
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126699
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | dbaccess/source/ui/control/dbtreelistbox.cxx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx index a153b42eda9a..55db602c5ea9 100644 --- a/dbaccess/source/ui/control/dbtreelistbox.cxx +++ b/dbaccess/source/ui/control/dbtreelistbox.cxx @@ -38,7 +38,6 @@ #include <svx/dbaobjectex.hxx> #include <vcl/commandevent.hxx> #include <vcl/event.hxx> -#include <vcl/menu.hxx> #include <vcl/svapp.hxx> #include <memory> @@ -387,7 +386,6 @@ IMPL_LINK(TreeListBox, CommandHdl, const CommandEvent&, rCEvt, bool) rtl::Reference xPopupMenu( new VCLXPopupMenu ); xMenuController->setPopupMenu( xPopupMenu ); - VclPtr<PopupMenu> pContextMenu( static_cast< PopupMenu* >( xPopupMenu->GetMenu() ) ); // allow context menu interception ::comphelper::OInterfaceContainerHelper2* pInterceptors = m_pContextMenuProvider->getContextMenuInterceptors(); @@ -459,7 +457,6 @@ IMPL_LINK(TreeListBox, CommandHdl, const CommandEvent&, rCEvt, bool) // do action for selected entry in popup menu css::uno::Reference<css::awt::XWindowPeer> xParent(xSourceWindow, css::uno::UNO_QUERY); xPopupMenu->execute(xParent, css::awt::Rectangle(aPos.X(), aPos.Y(), 1, 1), css::awt::PopupMenuDirection::EXECUTE_DOWN); - pContextMenu.disposeAndClear(); css::uno::Reference<css::lang::XComponent> xComponent(xMenuController, css::uno::UNO_QUERY); if (xComponent.is()) |