summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/dialogs/res_DataLabel.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 /chart2/source/controller/dialogs/res_DataLabel.cxx
parentadd CVE-2015-0065 testcase (diff)
downloadcore-167bc621ef825ed5b961502fe9324a675ee34e42.tar.gz
core-167bc621ef825ed5b961502fe9324a675ee34e42.zip
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'chart2/source/controller/dialogs/res_DataLabel.cxx')
-rw-r--r--chart2/source/controller/dialogs/res_DataLabel.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx
index 5ee6d2afc6b8..0c532e081d9f 100644
--- a/chart2/source/controller/dialogs/res_DataLabel.cxx
+++ b/chart2/source/controller/dialogs/res_DataLabel.cxx
@@ -178,12 +178,12 @@ void DataLabelResources::SetNumberFormatter( SvNumberFormatter* pFormatter )
m_pNumberFormatter = pFormatter;
}
-IMPL_LINK( DataLabelResources, NumberFormatDialogHdl, PushButton *, pButton )
+IMPL_LINK_TYPED( DataLabelResources, NumberFormatDialogHdl, Button *, pButton, void )
{
if( !m_pPool || !m_pNumberFormatter )
{
OSL_FAIL("Missing item pool or number formatter");
- return 1;
+ return;
}
if( pButton == m_pPB_NumberFormatForValue && !m_pCBNumber->IsChecked())
@@ -224,15 +224,13 @@ IMPL_LINK( DataLabelResources, NumberFormatDialogHdl, PushButton *, pButton )
rbMixedState = rbSourceMixedState = true;
}
}
- return 0;
}
-IMPL_LINK( DataLabelResources, CheckHdl, CheckBox*, pBox )
+IMPL_LINK_TYPED( DataLabelResources, CheckHdl, Button*, pBox, void )
{
if( pBox )
- pBox->EnableTriState( false );
+ static_cast<CheckBox*>(pBox)->EnableTriState( false );
EnableControls();
- return 0;
}
void DataLabelResources::EnableControls()