summaryrefslogtreecommitdiff
path: root/vcl/source/window/menubarwindow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/window/menubarwindow.cxx')
-rw-r--r--vcl/source/window/menubarwindow.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx
index 2fcc536d09df..3a346827d7b9 100644
--- a/vcl/source/window/menubarwindow.cxx
+++ b/vcl/source/window/menubarwindow.cxx
@@ -289,14 +289,16 @@ IMPL_LINK( MenuBarWindow, ShowHideListener, VclWindowEvent*, pEvent )
return 0;
}
-IMPL_LINK_NOARG(MenuBarWindow, FloatHdl)
+IMPL_LINK_NOARG_TYPED(MenuBarWindow, FloatHdl, Button*, void)
{
- return pMenu ? static_cast<MenuBar*>(pMenu)->GetFloatButtonClickHdl().Call( pMenu ) : 0;
+ if (pMenu)
+ static_cast<MenuBar*>(pMenu)->GetFloatButtonClickHdl().Call( pMenu );
}
-IMPL_LINK_NOARG(MenuBarWindow, HideHdl)
+IMPL_LINK_NOARG_TYPED(MenuBarWindow, HideHdl, Button*, void)
{
- return pMenu ? static_cast<MenuBar*>(pMenu)->GetHideButtonClickHdl().Call( pMenu ) : 0;
+ if (pMenu)
+ static_cast<MenuBar*>(pMenu)->GetHideButtonClickHdl().Call( pMenu );
}
void MenuBarWindow::ImplCreatePopup( bool bPreSelectFirst )