diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-25 09:52:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-25 18:20:34 +0000 |
commit | 1296732028df43160d070d27be6fd961e284fdd6 (patch) | |
tree | f6aa28a89c589b4e073257aec9ab0cb881aae012 /cui/source/factory | |
parent | 6fd356a08e92c043be612594eeba1521a837e48a (diff) |
convert Link<> to typed
Change-Id: I0d645d646037d9fbb4f1b97931ace6171a84a267
Reviewed-on: https://gerrit.libreoffice.org/18855
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 | 8 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 6810b42a28a0..0961103439f0 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -779,7 +779,7 @@ void AbstractSvxPostItDialog_Impl::HideAuthor() { pDlg->HideAuthor(); } -void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link<>& rLink ) +void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) { aNextHdl = rLink; if( rLink.IsSet() ) @@ -787,7 +787,7 @@ void AbstractSvxPostItDialog_Impl::SetNextHdl( const Link<>& rLink ) else pDlg->SetNextHdl( Link<SvxPostItDialog&,void>() ); } -void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link<>& rLink ) +void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) { aPrevHdl = rLink; if( rLink.IsSet() ) @@ -798,12 +798,12 @@ void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link<>& rLink ) IMPL_LINK_NOARG_TYPED(AbstractSvxPostItDialog_Impl, NextHdl, SvxPostItDialog&, void) { if( aNextHdl.IsSet() ) - aNextHdl.Call(this); + aNextHdl.Call(*this); } IMPL_LINK_NOARG_TYPED(AbstractSvxPostItDialog_Impl, PrevHdl, SvxPostItDialog&, void) { if( aPrevHdl.IsSet() ) - aPrevHdl.Call(this); + aPrevHdl.Call(*this); } vcl::Window * AbstractSvxPostItDialog_Impl::GetWindow() { diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index af543dcc593a..e4e962196d53 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -448,18 +448,18 @@ class AbstractSvxPostItDialog_Impl :public AbstractSvxPostItDialog DECL_ABSTDLG_BASE( AbstractSvxPostItDialog_Impl, SvxPostItDialog ) virtual void SetText( const OUString& rStr ) SAL_OVERRIDE; //From class Window virtual const SfxItemSet* GetOutputItemSet() const SAL_OVERRIDE; - virtual void SetPrevHdl( const Link<>& rLink ) SAL_OVERRIDE ; - virtual void SetNextHdl( const Link<>& rLink ) SAL_OVERRIDE ; + virtual void SetPrevHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) SAL_OVERRIDE ; + virtual void SetNextHdl( const Link<AbstractSvxPostItDialog&,void>& rLink ) SAL_OVERRIDE ; virtual void EnableTravel(bool bNext, bool bPrev) SAL_OVERRIDE ; virtual OUString GetNote() SAL_OVERRIDE ; virtual void SetNote(const OUString& rTxt) SAL_OVERRIDE ; virtual void ShowLastAuthor(const OUString& rAuthor, const OUString& rDate) SAL_OVERRIDE ; virtual void DontChangeAuthor() SAL_OVERRIDE ; virtual void HideAuthor() SAL_OVERRIDE ; - virtual vcl::Window * GetWindow() SAL_OVERRIDE; + virtual vcl::Window * GetWindow() SAL_OVERRIDE; private: - Link<> aNextHdl; - Link<> aPrevHdl; + Link<AbstractSvxPostItDialog&,void> aNextHdl; + Link<AbstractSvxPostItDialog&,void> aPrevHdl; DECL_LINK_TYPED(NextHdl, SvxPostItDialog&, void); DECL_LINK_TYPED(PrevHdl, SvxPostItDialog&, void); }; |