summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-24 13:53:17 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-24 16:19:37 +0000
commite85b2333bce7b1dcae73861df6d90b48b9f4efe5 (patch)
tree21d066cecfbfda9ace96b26953ddcc3ae1764001 /include/vcl
parentff6462e6307e6924dc6c8178043ae9032f4b4152 (diff)
convert Link<> to typed
Change-Id: I59d325c3b051690303a5841907317122fa1ec98b Reviewed-on: https://gerrit.libreoffice.org/18825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/ctrl.hxx10
-rw-r--r--include/vcl/slider.hxx1
2 files changed, 6 insertions, 5 deletions
diff --git a/include/vcl/ctrl.hxx b/include/vcl/ctrl.hxx
index 115d9dd87ea5..28bf572b54ac 100644
--- a/include/vcl/ctrl.hxx
+++ b/include/vcl/ctrl.hxx
@@ -42,8 +42,8 @@ protected:
private:
bool mbHasControlFocus;
bool mbShowAccelerator;
- Link<> maGetFocusHdl;
- Link<> maLoseFocusHdl;
+ Link<Control&,void> maGetFocusHdl;
+ Link<Control&,void> maLoseFocusHdl;
SAL_DLLPRIVATE void ImplInitControlData();
@@ -161,9 +161,9 @@ public:
*/
long ToRelativeLineIndex( long nIndex ) const;
- void SetGetFocusHdl( const Link<>& rLink ) { maGetFocusHdl = rLink; }
- void SetLoseFocusHdl( const Link<>& rLink ) { maLoseFocusHdl = rLink; }
- const Link<>& GetLoseFocusHdl() const { return maLoseFocusHdl; }
+ void SetGetFocusHdl( const Link<Control&,void>& rLink ) { maGetFocusHdl = rLink; }
+ void SetLoseFocusHdl( const Link<Control&,void>& rLink ) { maLoseFocusHdl = rLink; }
+ const Link<Control&,void>& GetLoseFocusHdl() const { return maLoseFocusHdl; }
/** determines whether the control currently has the focus
*/
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index 46ab0f30c7d3..9423936f60ae 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -58,6 +58,7 @@ private:
Link<Slider*,void> maEndSlideHdl;
DECL_LINK(LinkedFieldModifyHdl, NumericField*);
+ DECL_LINK_TYPED(LinkedFieldLoseFocusHdl, Control&, void);
using Control::ImplInitSettings;
using Window::ImplInit;