summaryrefslogtreecommitdiff
path: root/sw/source/ui/misc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-22 08:11:58 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-22 08:13:42 +0100
commite6c124ae3b4de78848344a172003de934e1cb163 (patch)
tree99bbb9c600af26b18842ef33fca9790685d55ccc /sw/source/ui/misc
parent08bdb40656898fc484f5200b63610a31369ddd87 (diff)
Some more loplugin:cstylecast: sw
note the two TODOs about suspicious casts Change-Id: I324fa05b30a5c8aa1d9e9a6d488a1e295226e788
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r--sw/source/ui/misc/srtdlg.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
index 084c73ba1e0e..4adaec9a62e9 100644
--- a/sw/source/ui/misc/srtdlg.cxx
+++ b/sw/source/ui/misc/srtdlg.cxx
@@ -382,9 +382,9 @@ IMPL_LINK_NOARG(SwSortDlg, DelimCharHdl)
return 0;
}
-IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck )
+IMPL_LINK( SwSortDlg, CheckHdl, void *, pControl )
{
- if( pCheck == ( CheckBox* ) m_pRowRB)
+ if( pControl == m_pRowRB)
{
m_pColLbl->SetText(aColTxt);
m_pColEdt1->SetMax(nY);
@@ -395,7 +395,7 @@ IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck )
m_pColEdt2->SetAccessibleName(aColTxt);
m_pColEdt3->SetAccessibleName(aColTxt);
}
- else if( pCheck == ( CheckBox* ) m_pColumnRB)
+ else if( pControl == m_pColumnRB)
{
m_pColLbl->SetText(aRowTxt);
m_pColEdt1->SetMax(nX);
@@ -409,7 +409,7 @@ IMPL_LINK( SwSortDlg, CheckHdl, CheckBox *, pCheck )
else if(!m_pKeyCB1->IsChecked() &&
!m_pKeyCB2->IsChecked() &&
!m_pKeyCB3->IsChecked())
- pCheck->Check(true);
+ static_cast<CheckBox *>(pControl)->Check(true);
return 0;
}