diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx index f5056c1a5f9c..e6b701553797 100644 --- a/include/vcl/menubtn.hxx +++ b/include/vcl/menubtn.hxx @@ -40,7 +40,6 @@ private: Link maActivateHdl; Link maSelectHdl; - SAL_DLLPRIVATE void ImplInitMenuButtonData(); DECL_DLLPRIVATE_LINK( ImplMenuTimeoutHdl, Timer*, void ); MenuButton( const MenuButton & ) = delete; diff --git a/vcl/source/control/menubtn.cxx b/vcl/source/control/menubtn.cxx index 6d1c6773a3d4..b3a01670b245 100644 --- a/vcl/source/control/menubtn.cxx +++ b/vcl/source/control/menubtn.cxx @@ -26,16 +26,6 @@ #include #include -void MenuButton::ImplInitMenuButtonData() -{ - mnDDStyle = PushButtonDropdownStyle::MenuButton; - - mpMenuTimer = nullptr; - mpMenu = nullptr; - mnCurItemId = 0; - mbDelayMenu = false; -} - void MenuButton::ImplInit( vcl::Window* pParent, WinBits nStyle ) { if ( !(nStyle & WB_NOTABSTOP) ) @@ -73,10 +63,13 @@ OString MenuButton::GetCurItemIdent() const } MenuButton::MenuButton( vcl::Window* pParent, WinBits nWinBits ) - : PushButton( WINDOW_MENUBUTTON ) + : PushButton(WINDOW_MENUBUTTON) + , mpMenuTimer(nullptr) + , mnCurItemId(0) + , mbDelayMenu(false) { - ImplInitMenuButtonData(); - ImplInit( pParent, nWinBits ); + mnDDStyle = PushButtonDropdownStyle::MenuButton; + ImplInit(pParent, nWinBits); } MenuButton::~MenuButton()