From fc4726a1f41ded40ce7d7100350c322863646b37 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 May 2015 07:49:35 +0200 Subject: Use typed Menu::Set[De]actuivateHdl Links Change-Id: I6736383ad0ec5c9f2ea2281bfdcfa280cd712032 --- include/vcl/menu.hxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'include/vcl/menu.hxx') diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 352efaf6628b..7c570f0f646b 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -126,8 +126,8 @@ private: Menu* pStartedFrom; VclPtr pWindow; - Link<> aActivateHdl; // Active-Handler - Link<> aDeactivateHdl; // Deactivate-Handler + Link aActivateHdl; // Active-Handler + Link aDeactivateHdl; // Deactivate-Handler Link aHighlightHdl; // Highlight-Handler Link<> aSelectHdl; // Highlight-Handler @@ -320,11 +320,9 @@ public: void SetHelpId( sal_uInt16 nItemId, const OString& rHelpId ); OString GetHelpId( sal_uInt16 nItemId ) const; - void SetActivateHdl( const Link<>& rLink ) { aActivateHdl = rLink; } - const Link<>& GetActivateHdl() const { return aActivateHdl; } + void SetActivateHdl( const Link& rLink ) { aActivateHdl = rLink; } - void SetDeactivateHdl( const Link<>& rLink ) { aDeactivateHdl = rLink; } - const Link<>& GetDeactivateHdl() const { return aDeactivateHdl; } + void SetDeactivateHdl( const Link& rLink ) { aDeactivateHdl = rLink; } void SetHighlightHdl( const Link& rLink ) { aHighlightHdl = rLink; } -- cgit