diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-07 13:31:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-08 06:02:00 +0100 |
commit | 1f27c361531af17a13510deb86f0b8917d4d4276 (patch) | |
tree | 9da70b02cee21f507f656ab8fd415a098353ec67 /vcl | |
parent | 1356892777b89b09ad7695e53d9e5ef1fca4f934 (diff) |
loplugin:fieldcast in MenuBarWindow
Change-Id: I2b8d8ce3bd20166637d1051fd0d4407a9b2a76b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159084
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/menubarwindow.cxx | 4 | ||||
-rw-r--r-- | vcl/source/window/menubarwindow.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx index 89e6b9246148..e77b600ea445 100644 --- a/vcl/source/window/menubarwindow.cxx +++ b/vcl/source/window/menubarwindow.cxx @@ -224,7 +224,7 @@ IMPL_LINK_NOARG(MenuBarWindow, CloseHdl, ToolBox *, void) // #i106052# call close hdl asynchronously to ease handler implementation // this avoids still being in the handler while the DecoToolBox already // gets destroyed - Application::PostUserEvent(static_cast<MenuBar*>(m_pMenu.get())->GetCloseButtonClickHdl()); + Application::PostUserEvent(m_pMenu->GetCloseButtonClickHdl()); } else { @@ -1010,7 +1010,7 @@ void MenuBarWindow::LayoutChanged() // depending on the native implementation or the displayable flag // the menubar windows is suppressed (ie, height=0) - if (!static_cast<MenuBar*>(m_pMenu.get())->IsDisplayable() || + if (!m_pMenu->IsDisplayable() || (m_pMenu->ImplGetSalMenu() && m_pMenu->ImplGetSalMenu()->VisibleMenuBar())) { nHeight = 0; diff --git a/vcl/source/window/menubarwindow.hxx b/vcl/source/window/menubarwindow.hxx index cc7963a1bed0..b5f026254ddd 100644 --- a/vcl/source/window/menubarwindow.hxx +++ b/vcl/source/window/menubarwindow.hxx @@ -68,7 +68,7 @@ private: Link<MenuBarButtonCallbackArg&,bool> m_aHighlightLink; }; - VclPtr<Menu> m_pMenu; + VclPtr<MenuBar> m_pMenu; VclPtr<PopupMenu> m_pActivePopup; VclPtr<PopupMenu> mpParentPopup; sal_uInt16 m_nHighlightedItem; |