diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-06 10:09:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-07 08:19:14 +0100 |
commit | 536a6d6ca67d01c8470c242c6f1fd0750496eed4 (patch) | |
tree | cc2aed75621456aaeb31d26e910cc61baf3bfdd7 /sfx2/source/bastyp/progress.cxx | |
parent | 53a318196859140deb4b3c317db583a90cfd604c (diff) |
loplugin:flatten in sfx2
Change-Id: If4e07d497ead58a2ff58b5fdedd282b8784be421
Reviewed-on: https://gerrit.libreoffice.org/67435
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/bastyp/progress.cxx')
-rw-r--r-- | sfx2/source/bastyp/progress.cxx | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx index 0659564edf16..a1eb0394c1ec 100644 --- a/sfx2/source/bastyp/progress.cxx +++ b/sfx2/source/bastyp/progress.cxx @@ -268,35 +268,35 @@ void SfxProgress::Resume() { if( pImpl->pActiveProgress ) return; - if ( bSuspended ) - { - SAL_INFO("sfx.bastyp", "SfxProgress: resumed"); - if ( pImpl->xStatusInd.is() ) - { - pImpl->xStatusInd->start( pImpl->aText, pImpl->nMax ); - pImpl->xStatusInd->setValue( nVal ); - } + if ( !bSuspended ) + return; - if ( pImpl->bWaitMode ) - { - if ( pImpl->xObjSh.is() ) - { - for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImpl->xObjSh.get() ); - pFrame; - pFrame = SfxViewFrame::GetNext( *pFrame, pImpl->xObjSh.get() ) ) - pFrame->GetWindow().EnterWait(); - } - } + SAL_INFO("sfx.bastyp", "SfxProgress: resumed"); + if ( pImpl->xStatusInd.is() ) + { + pImpl->xStatusInd->start( pImpl->aText, pImpl->nMax ); + pImpl->xStatusInd->setValue( nVal ); + } + if ( pImpl->bWaitMode ) + { if ( pImpl->xObjSh.is() ) { - SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImpl->xObjSh.get()); - if ( pFrame ) - pFrame->GetBindings().ENTERREGISTRATIONS(); + for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImpl->xObjSh.get() ); + pFrame; + pFrame = SfxViewFrame::GetNext( *pFrame, pImpl->xObjSh.get() ) ) + pFrame->GetWindow().EnterWait(); } + } - bSuspended = false; + if ( pImpl->xObjSh.is() ) + { + SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImpl->xObjSh.get()); + if ( pFrame ) + pFrame->GetBindings().ENTERREGISTRATIONS(); } + + bSuspended = false; } @@ -313,30 +313,30 @@ void SfxProgress::Suspend() { if( pImpl->pActiveProgress ) return; - if ( !bSuspended ) - { - SAL_INFO("sfx.bastyp", "SfxProgress: suspended"); - bSuspended = true; + if ( bSuspended ) + return; - if ( pImpl->xStatusInd.is() ) - { - pImpl->xStatusInd->reset(); - } + SAL_INFO("sfx.bastyp", "SfxProgress: suspended"); + bSuspended = true; - if ( pImpl->xObjSh.is() ) - { - for ( SfxViewFrame *pFrame = - SfxViewFrame::GetFirst(pImpl->xObjSh.get()); - pFrame; - pFrame = SfxViewFrame::GetNext( *pFrame, pImpl->xObjSh.get() ) ) - pFrame->GetWindow().LeaveWait(); - } - if ( pImpl->xObjSh.is() ) - { - SfxViewFrame *pFrame = SfxViewFrame::GetFirst( pImpl->xObjSh.get() ); - if ( pFrame ) - pFrame->GetBindings().LEAVEREGISTRATIONS(); - } + if ( pImpl->xStatusInd.is() ) + { + pImpl->xStatusInd->reset(); + } + + if ( pImpl->xObjSh.is() ) + { + for ( SfxViewFrame *pFrame = + SfxViewFrame::GetFirst(pImpl->xObjSh.get()); + pFrame; + pFrame = SfxViewFrame::GetNext( *pFrame, pImpl->xObjSh.get() ) ) + pFrame->GetWindow().LeaveWait(); + } + if ( pImpl->xObjSh.is() ) + { + SfxViewFrame *pFrame = SfxViewFrame::GetFirst( pImpl->xObjSh.get() ); + if ( pFrame ) + pFrame->GetBindings().LEAVEREGISTRATIONS(); } } |