diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-30 16:58:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-30 16:59:09 +0200 |
commit | 4d28399ccdeeb43655aba89f14c58b26d379c780 (patch) | |
tree | cf520fb6e895566417b54ba26e90675a063681c4 /include | |
parent | b705075634d54a57e5edfeae1791869186bf149a (diff) |
Use typed Link for MenuButton::SetSelectHdl
(and MenuButton::GetSelectHdl was unused)
Change-Id: I94df06bcda9e041fde65553e30247874b20ff74b
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/menubtn.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/vcl/menubtn.hxx b/include/vcl/menubtn.hxx index ffeaa19919bc..035e1fc82dc2 100644 --- a/include/vcl/menubtn.hxx +++ b/include/vcl/menubtn.hxx @@ -42,7 +42,7 @@ private: sal_uInt16 mnCurItemId; sal_uInt16 mnMenuMode; Link<> maActivateHdl; - Link<> maSelectHdl; + Link<MenuButton *, void> maSelectHdl; SAL_DLLPRIVATE void ImplInitMenuButtonData(); DECL_DLLPRIVATE_LINK( ImplMenuTimeoutHdl, void* ); @@ -79,8 +79,7 @@ public: void SetActivateHdl( const Link<>& rLink ) { maActivateHdl = rLink; } const Link<>& GetActivateHdl() const { return maActivateHdl; } - void SetSelectHdl( const Link<>& rLink ) { maSelectHdl = rLink; } - const Link<>& GetSelectHdl() const { return maSelectHdl; } + void SetSelectHdl( const Link<MenuButton *, void>& rLink ) { maSelectHdl = rLink; } }; #endif // INCLUDED_VCL_MENUBTN_HXX |