From 167bc621ef825ed5b961502fe9324a675ee34e42 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 19 Aug 2015 09:11:34 +0200 Subject: Convert vcl Button Link<> click handler to typed Link Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b --- chart2/source/controller/dialogs/res_DataLabel.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'chart2/source/controller/dialogs/res_DataLabel.cxx') 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(pBox)->EnableTriState( false ); EnableControls(); - return 0; } void DataLabelResources::EnableControls() -- cgit