From e85b2333bce7b1dcae73861df6d90b48b9f4efe5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Sep 2015 13:53:17 +0200 Subject: convert Link<> to typed Change-Id: I59d325c3b051690303a5841907317122fa1ec98b Reviewed-on: https://gerrit.libreoffice.org/18825 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basctl/source/basicide/bastype3.hxx | 4 ++-- basctl/source/basicide/bastypes.cxx | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'basctl/source') diff --git a/basctl/source/basicide/bastype3.hxx b/basctl/source/basicide/bastype3.hxx index 3106cf767fca..5f946ca5a2c3 100644 --- a/basctl/source/basicide/bastype3.hxx +++ b/basctl/source/basicide/bastype3.hxx @@ -35,8 +35,8 @@ private: protected: DECL_LINK_TYPED( EditAccHdl, Accelerator&, void ); - DECL_LINK(ImplGetFocusHdl, void *); - DECL_LINK(ImplLoseFocusHdl, void *); + DECL_LINK_TYPED( ImplGetFocusHdl, Control&, void ); + DECL_LINK_TYPED( ImplLoseFocusHdl, Control&, void ); public: ExtendedEdit( vcl::Window* pParent, IDEResId nRes ); diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx index 92f921c7e04f..4d98fdee68f9 100644 --- a/basctl/source/basicide/bastypes.cxx +++ b/basctl/source/basicide/bastypes.cxx @@ -437,18 +437,16 @@ ExtendedEdit::ExtendedEdit( vcl::Window* pParent, IDEResId nRes ) : Control::SetLoseFocusHdl( LINK( this, ExtendedEdit, ImplLoseFocusHdl ) ); } -IMPL_LINK_NOARG(ExtendedEdit, ImplGetFocusHdl) +IMPL_LINK_NOARG_TYPED(ExtendedEdit, ImplGetFocusHdl, Control&, void) { Application::InsertAccel( &aAcc ); aLoseFocusHdl.Call( this ); - return 0; } -IMPL_LINK_NOARG(ExtendedEdit, ImplLoseFocusHdl) +IMPL_LINK_NOARG_TYPED(ExtendedEdit, ImplLoseFocusHdl, Control&, void) { Application::RemoveAccel( &aAcc ); - return 0; } -- cgit