diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-19 09:11:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-26 11:15:35 +0200 |
commit | 167bc621ef825ed5b961502fe9324a675ee34e42 (patch) | |
tree | 523838d8adc14a62f846529ee6eab3343b2fe87b /svtools/source/dialogs/wizardmachine.cxx | |
parent | 46a27805fb707544a844a961a3743b8b992282f0 (diff) |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'svtools/source/dialogs/wizardmachine.cxx')
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index ffb47bb6255b..458598b3e673 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -412,16 +412,16 @@ namespace svt } - IMPL_LINK_NOARG(OWizardMachine, OnFinish) + IMPL_LINK_NOARG_TYPED(OWizardMachine, OnFinish, Button*, void) { if ( isTravelingSuspended() ) - return 0; + return; WizardTravelSuspension aTravelGuard( *this ); if ( !prepareLeaveCurrentState( eFinish ) ) { - return 0L; + return; } - return onFinish() ? 1L : 0L; + onFinish(); } @@ -629,23 +629,21 @@ namespace svt } - IMPL_LINK_NOARG(OWizardMachine, OnPrevPage) + IMPL_LINK_NOARG_TYPED(OWizardMachine, OnPrevPage, Button*, void) { if ( isTravelingSuspended() ) - return 0; + return; WizardTravelSuspension aTravelGuard( *this ); - bool nRet = travelPrevious(); - return nRet ? 1 : 0; + travelPrevious(); } - IMPL_LINK_NOARG(OWizardMachine, OnNextPage) + IMPL_LINK_NOARG_TYPED(OWizardMachine, OnNextPage, Button*, void) { if ( isTravelingSuspended() ) - return 0; + return; WizardTravelSuspension aTravelGuard( *this ); - bool nRet = travelNext(); - return nRet ? 1 : 0; + travelNext(); } |