diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-24 19:04:43 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-25 18:19:36 +0000 |
commit | 6fd356a08e92c043be612594eeba1521a837e48a (patch) | |
tree | 96a5cf862647ee1e4e21e84df9e339a9bc4126be /cui/source/factory | |
parent | 51b2ad378a8531a7b02433594cd7f6bbd6a61222 (diff) |
convert Link<> to typed
Change-Id: I845f48577a9b93854e24a2004168c2d2311d9542
Reviewed-on: https://gerrit.libreoffice.org/18854
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'cui/source/factory')
-rw-r--r-- | cui/source/factory/dlgfact.cxx | 10 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 94356f2d8115..6810b42a28a0 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -785,7 +785,7 @@ void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link<>& rLink ) if( rLink.IsSet() ) pDlg->SetNextHdl( LINK(this, AbstractSvxPostItDialog_Impl, NextHdl ) ); else - pDlg->SetNextHdl( Link<>() ); + pDlg->SetNextHdl( Link<SvxPostItDialog&,void>() ); } void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link<>& rLink ) { @@ -793,19 +793,17 @@ void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link<>& rLink ) if( rLink.IsSet() ) pDlg->SetPrevHdl( LINK(this, AbstractSvxPostItDialog_Impl, PrevHdl ) ); else - pDlg->SetPrevHdl( Link<>() ); + pDlg->SetPrevHdl( Link<SvxPostItDialog&,void>() ); } -IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, NextHdl) +IMPL_LINK_NOARG_TYPED(AbstractSvxPostItDialog_Impl, NextHdl, SvxPostItDialog&, void) { if( aNextHdl.IsSet() ) aNextHdl.Call(this); - return 0; } -IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, PrevHdl) +IMPL_LINK_NOARG_TYPED(AbstractSvxPostItDialog_Impl, PrevHdl, SvxPostItDialog&, void) { if( aPrevHdl.IsSet() ) aPrevHdl.Call(this); - return 0; } vcl::Window * AbstractSvxPostItDialog_Impl::GetWindow() { diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index 949e25266f4c..af543dcc593a 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -460,8 +460,8 @@ class AbstractSvxPostItDialog_Impl :public AbstractSvxPostItDialog private: Link<> aNextHdl; Link<> aPrevHdl; - DECL_LINK(NextHdl, void *); - DECL_LINK(PrevHdl, void *); + DECL_LINK_TYPED(NextHdl, SvxPostItDialog&, void); + DECL_LINK_TYPED(PrevHdl, SvxPostItDialog&, void); }; class PasswordToOpenModifyDialog; |