summaryrefslogtreecommitdiff
path: root/sw/source/uibase/utlui/numfmtlb.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-10-04 15:05:38 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-12 10:48:13 +0000
commit3c99f8500f657ed84b316390d5175a6f5e56bc69 (patch)
tree749f16652560a50d409b12a23bf1a5d93b3cd2d5 /sw/source/uibase/utlui/numfmtlb.cxx
parentbbadb38539eb233ac45b267034066a7274181c65 (diff)
convert Link<> to typed
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb Reviewed-on: https://gerrit.libreoffice.org/19305 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/utlui/numfmtlb.cxx')
-rw-r--r--sw/source/uibase/utlui/numfmtlb.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/uibase/utlui/numfmtlb.cxx b/sw/source/uibase/utlui/numfmtlb.cxx
index f0e86d3a4dd3..90a8154c82fe 100644
--- a/sw/source/uibase/utlui/numfmtlb.cxx
+++ b/sw/source/uibase/utlui/numfmtlb.cxx
@@ -366,14 +366,14 @@ sal_uLong NumFormatListBox::GetFormat() const
return reinterpret_cast<sal_uLong>(GetEntryData(nPos));
}
-IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
+IMPL_LINK_TYPED( NumFormatListBox, SelectHdl, ListBox&, rBox, void )
{
- const sal_Int32 nPos = pBox->GetSelectEntryPos();
+ const sal_Int32 nPos = rBox.GetSelectEntryPos();
OUString sDefine(SW_RES( STR_DEFINE_NUMBERFORMAT ));
SwView *pView = GetView();
- if( pView && nPos == pBox->GetEntryCount() - 1 &&
- pBox->GetEntry( nPos ) == sDefine )
+ if( pView && nPos == rBox.GetEntryCount() - 1 &&
+ rBox.GetEntry( nPos ) == sDefine )
{
SwWrtShell &rSh = pView->GetWrtShell();
SvNumberFormatter* pFormatter = rSh.GetNumberFormatter();
@@ -442,7 +442,6 @@ IMPL_LINK( NumFormatListBox, SelectHdl, ListBox *, pBox )
else
SetDefFormat(nFormat);
}
- return 0;
}
double NumFormatListBox::GetDefValue(const short nFormatType) const