summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-30 16:58:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-30 16:59:09 +0200
commit4d28399ccdeeb43655aba89f14c58b26d379c780 (patch)
treecf520fb6e895566417b54ba26e90675a063681c4 /include
parentb705075634d54a57e5edfeae1791869186bf149a (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.hxx5
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