summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc/linenum.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-19 09:11:34 +0200
committerNoel Grandin <noel@peralex.com>2015-08-26 11:15:35 +0200
commit167bc621ef825ed5b961502fe9324a675ee34e42 (patch)
tree523838d8adc14a62f846529ee6eab3343b2fe87b /sw/source/ui/misc/linenum.cxx
parent46a27805fb707544a844a961a3743b8b992282f0 (diff)
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'sw/source/ui/misc/linenum.cxx')
-rw-r--r--sw/source/ui/misc/linenum.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sw/source/ui/misc/linenum.cxx b/sw/source/ui/misc/linenum.cxx
index 47a7b7c182e9..1eb0e1413f94 100644
--- a/sw/source/ui/misc/linenum.cxx
+++ b/sw/source/ui/misc/linenum.cxx
@@ -193,7 +193,7 @@ void SwLineNumberingDlg::dispose()
}
-IMPL_LINK_NOARG(SwLineNumberingDlg, OKHdl)
+IMPL_LINK_NOARG_TYPED(SwLineNumberingDlg, OKHdl, Button*, void)
{
SwLineNumberInfo aInf(pSh->GetLineNumberInfo());
@@ -252,8 +252,6 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, OKHdl)
m_pNumberingOnFooterHeader->SetState(TRISTATE_FALSE);
EndDialog( RET_OK );
-
- return 0;
}
// modify
@@ -269,12 +267,11 @@ IMPL_LINK_NOARG(SwLineNumberingDlg, ModifyHdl)
}
// On/Off
-IMPL_LINK_NOARG(SwLineNumberingDlg, LineOnOffHdl)
+IMPL_LINK_NOARG_TYPED(SwLineNumberingDlg, LineOnOffHdl, Button*, void)
{
bool bEnable = m_pNumberingOnCB->IsChecked();
m_pBodyContent->Enable(bEnable);
ModifyHdl();
- return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */