diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-01 08:30:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 08:30:28 +0200 |
commit | 40971354138e14a2aacfa4605ba0c096e000d578 (patch) | |
tree | b5812c6265a3900bd2cf47304ab1e470b3b953c5 /svtools/source/dialogs/wizardmachine.cxx | |
parent | 5e913234da65484778d53179ee2005aec01d0f0e (diff) |
loplugin:unuseddefaultparam in svtools
Change-Id: I4e9712bea0cc8cf2d48759738806a584dda8268e
Diffstat (limited to 'svtools/source/dialogs/wizardmachine.cxx')
-rw-r--r-- | svtools/source/dialogs/wizardmachine.cxx | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/svtools/source/dialogs/wizardmachine.cxx b/svtools/source/dialogs/wizardmachine.cxx index b39fba449589..14407ac5a2d4 100644 --- a/svtools/source/dialogs/wizardmachine.cxx +++ b/svtools/source/dialogs/wizardmachine.cxx @@ -505,28 +505,24 @@ namespace svt } - void OWizardMachine::skip(sal_Int32 _nSteps) + void OWizardMachine::skip() { - DBG_ASSERT(_nSteps > 0, "OWizardMachine::skip: invalid number of steps!"); // allowed to leave the current page? if ( !prepareLeaveCurrentState( eTravelForward ) ) return; WizardState nCurrentState = getCurrentState(); WizardState nNextState = determineNextState(nCurrentState); - // loop _nSteps steps - while (_nSteps-- > 0) - { - if (WZS_INVALID_STATE == nNextState) - return; - // remember the skipped state in the history - m_pImpl->aStateHistory.push(nCurrentState); + if (WZS_INVALID_STATE == nNextState) + return; - // get the next state - nCurrentState = nNextState; - nNextState = determineNextState(nCurrentState); - } + // remember the skipped state in the history + m_pImpl->aStateHistory.push(nCurrentState); + + // get the next state + nCurrentState = nNextState; + nNextState = determineNextState(nCurrentState); // show the (n+1)th page if (!ShowPage(nCurrentState)) @@ -615,9 +611,9 @@ namespace svt } - void OWizardMachine::enableAutomaticNextButtonState( bool _bEnable ) + void OWizardMachine::enableAutomaticNextButtonState() { - m_pImpl->m_bAutoNextButtonState = _bEnable; + m_pImpl->m_bAutoNextButtonState = true; } |