From 99b21cc9f3f32284061be255f437b2954a7aada0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 13 Oct 2015 13:17:30 +0200 Subject: convert Link<> to typed Change-Id: I6c55c74d47b13149c2fa210bb9de4e8c430c57cc --- basctl/source/basicide/brkdlg.cxx | 6 ++---- basctl/source/basicide/brkdlg.hxx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/brkdlg.cxx b/basctl/source/basicide/brkdlg.cxx index b249c6c03b98..81ebd05589fe 100644 --- a/basctl/source/basicide/brkdlg.cxx +++ b/basctl/source/basicide/brkdlg.cxx @@ -158,18 +158,16 @@ IMPL_LINK_TYPED( BreakPointDialog, CheckBoxHdl, Button *, pButton, void ) pBrk->bEnabled = pChkBx->IsChecked(); } -IMPL_LINK( BreakPointDialog, ComboBoxHighlightHdl, ComboBox *, pBox ) +IMPL_LINK_TYPED( BreakPointDialog, ComboBoxHighlightHdl, ComboBox&, rBox, void ) { m_pNewButton->Disable(); m_pOKButton->Enable(); m_pDelButton->Enable(); - sal_Int32 nEntry = pBox->GetEntryPos( pBox->GetText() ); + sal_Int32 nEntry = rBox.GetEntryPos( rBox.GetText() ); BreakPoint* pBrk = m_aModifiedBreakPointList.at( nEntry ); DBG_ASSERT( pBrk, "Kein passender Breakpoint zur Liste ?" ); UpdateFields( pBrk ); - - return 0; } diff --git a/basctl/source/basicide/brkdlg.hxx b/basctl/source/basicide/brkdlg.hxx index 58acdac44066..9ae8e3678d67 100644 --- a/basctl/source/basicide/brkdlg.hxx +++ b/basctl/source/basicide/brkdlg.hxx @@ -44,7 +44,7 @@ private: protected: void CheckButtons(); DECL_LINK_TYPED( CheckBoxHdl, Button*, void ); - DECL_LINK( ComboBoxHighlightHdl, ComboBox * ); + DECL_LINK_TYPED( ComboBoxHighlightHdl, ComboBox&, void ); DECL_LINK( EditModifyHdl, Edit * ); DECL_LINK_TYPED( ButtonHdl, Button*, void ); void UpdateFields( BreakPoint* pBrk ); -- cgit