summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/redcom.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-25 09:52:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-25 18:20:34 +0000
commit1296732028df43160d070d27be6fd961e284fdd6 (patch)
treef6aa28a89c589b4e073257aec9ab0cb881aae012 /sc/source/ui/miscdlgs/redcom.cxx
parent6fd356a08e92c043be612594eeba1521a837e48a (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/ui/miscdlgs/redcom.cxx')
-rw-r--r--sc/source/ui/miscdlgs/redcom.cxx16
1 files changed, 6 insertions, 10 deletions
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: */