From 7a39ae04220d70caef0335ed47452b36cd2e98c7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 8 Sep 2015 08:53:52 +0200 Subject: convert Link<> to typed Change-Id: I49bf8192a2f5295890ead8ddc2452a5de4c93b20 --- sd/source/ui/dlg/brkdlg.cxx | 9 ++++----- sd/source/ui/inc/BreakDlg.hxx | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index f40bcce6af70..adf53ce577b8 100644 --- a/sd/source/ui/dlg/brkdlg.cxx +++ b/sd/source/ui/dlg/brkdlg.cxx @@ -45,7 +45,6 @@ BreakDlg::BreakDlg( sal_uLong nSumActionCount, sal_uLong nObjCount ) : SfxModalDialog(pWindow, "BreakDialog", "modules/sdraw/ui/breakdialog.ui") - , aLink( LINK(this, BreakDlg, UpDate)) , mpProgress( NULL ) { get(m_pFiObjInfo, "metafiles"); @@ -57,7 +56,7 @@ BreakDlg::BreakDlg( mpProgress = new SfxProgress( pShell, SD_RESSTR(STR_BREAK_METAFILE), nSumActionCount*3 ); - pProgrInfo = new SvdProgressInfo( &aLink ); + pProgrInfo = new SvdProgressInfo( LINK(this, BreakDlg, UpDate) ); // every action is editedt 3 times in DoImport() pProgrInfo->Init( nSumActionCount*3, nObjCount ); @@ -96,10 +95,10 @@ IMPL_LINK_NOARG_TYPED(BreakDlg, CancelButtonHdl, Button*, void) * Every following call should contain the finished actions since the * last call of UpDate. */ -IMPL_LINK( BreakDlg, UpDate, void*, nInit ) +IMPL_LINK_TYPED( BreakDlg, UpDate, void*, nInit, bool ) { if(pProgrInfo == NULL) - return 1L; + return true; // update status bar or show a error message? if(nInit == reinterpret_cast(1L)) @@ -146,7 +145,7 @@ IMPL_LINK( BreakDlg, UpDate, void*, nInit ) } Application::Reschedule(); - return( bCancel?0L:1L ); + return bCancel; } /** diff --git a/sd/source/ui/inc/BreakDlg.hxx b/sd/source/ui/inc/BreakDlg.hxx index b53745300552..eb1643fab97b 100644 --- a/sd/source/ui/inc/BreakDlg.hxx +++ b/sd/source/ui/inc/BreakDlg.hxx @@ -69,11 +69,10 @@ private: Idle aIdle; SvdProgressInfo *pProgrInfo; - Link<> aLink; SfxProgress *mpProgress; DECL_LINK_TYPED( CancelButtonHdl, Button*, void ); - DECL_LINK( UpDate, void* ); + DECL_LINK_TYPED( UpDate, void*, bool ); DECL_LINK_TYPED( InitialUpdate, Idle*, void ); }; -- cgit