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 /sc/source | |
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 'sc/source')
-rw-r--r-- | sc/source/ui/inc/redcom.hxx | 4 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/redcom.cxx | 16 |
2 files changed, 8 insertions, 12 deletions
diff --git a/sc/source/ui/inc/redcom.hxx b/sc/source/ui/inc/redcom.hxx index 86e2588f416b..29b15a83529c 100644 --- a/sc/source/ui/inc/redcom.hxx +++ b/sc/source/ui/inc/redcom.hxx @@ -34,8 +34,8 @@ private: OUString aComment; AbstractSvxPostItDialog* pDlg; - DECL_LINK( PrevHdl, AbstractSvxPostItDialog* ); - DECL_LINK( NextHdl, AbstractSvxPostItDialog* ); + DECL_LINK_TYPED( PrevHdl, AbstractSvxPostItDialog&, void ); + DECL_LINK_TYPED( NextHdl, AbstractSvxPostItDialog&, void ); protected: diff --git a/sc/source/ui/miscdlgs/redcom.cxx b/sc/source/ui/miscdlgs/redcom.cxx index 87c8527ec8e4..d8bd6b757d3f 100644 --- a/sc/source/ui/miscdlgs/redcom.cxx +++ b/sc/source/ui/miscdlgs/redcom.cxx @@ -151,26 +151,22 @@ void ScRedComDialog::SelectCell() } } -IMPL_LINK(ScRedComDialog, PrevHdl, AbstractSvxPostItDialog*, pDlgP ) +IMPL_LINK_TYPED(ScRedComDialog, PrevHdl, AbstractSvxPostItDialog&, rDlgP, void ) { - if (pDocShell!=NULL && pDlgP->GetNote() != aComment ) - pDocShell->SetChangeComment( pChangeAction, pDlgP->GetNote()); + if (pDocShell!=NULL && rDlgP.GetNote() != aComment ) + pDocShell->SetChangeComment( pChangeAction, rDlgP.GetNote()); ReInit(FindPrev(pChangeAction)); SelectCell(); - - return 0; } -IMPL_LINK(ScRedComDialog, NextHdl, AbstractSvxPostItDialog*, pDlgP ) +IMPL_LINK_TYPED(ScRedComDialog, NextHdl, AbstractSvxPostItDialog&, rDlgP, void ) { - if ( pDocShell!=NULL && pDlgP->GetNote() != aComment ) - pDocShell->SetChangeComment( pChangeAction, pDlgP->GetNote()); + if ( pDocShell!=NULL && rDlgP.GetNote() != aComment ) + pDocShell->SetChangeComment( pChangeAction, rDlgP.GetNote()); ReInit(FindNext(pChangeAction)); SelectCell(); - - return 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |