summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/bastyp/progress.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 618590ee3509..644724f638a7 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -67,30 +67,30 @@ struct SfxProgress_Impl
SfxViewFrame* pView;
explicit SfxProgress_Impl( const OUString& );
- void Enable_Impl( bool );
+ void Enable_Impl();
};
-void SfxProgress_Impl::Enable_Impl( bool bEnable )
+void SfxProgress_Impl::Enable_Impl()
{
SfxObjectShell* pDoc = bAllDocs ? nullptr : static_cast<SfxObjectShell*>(xObjSh);
SfxViewFrame *pFrame= SfxViewFrame::GetFirst(pDoc);
while ( pFrame )
{
- pFrame->Enable(bEnable);
- pFrame->GetDispatcher()->Lock( !bEnable );
+ pFrame->Enable(true/*bEnable*/);
+ pFrame->GetDispatcher()->Lock( false );
pFrame = SfxViewFrame::GetNext(*pFrame, pDoc);
}
if ( pView )
{
- pView->Enable( bEnable );
- pView->GetDispatcher()->Lock( !bEnable );
+ pView->Enable( true/*bEnable*/ );
+ pView->GetDispatcher()->Lock( false );
}
if ( !pDoc )
- SfxGetpApp()->GetAppDispatcher_Impl()->Lock( !bEnable );
+ SfxGetpApp()->GetAppDispatcher_Impl()->Lock( false );
}
@@ -209,7 +209,7 @@ void SfxProgress::Stop()
else
SfxGetpApp()->SetProgress_Impl(nullptr);
if ( pImp->bLocked )
- pImp->Enable_Impl(true);
+ pImp->Enable_Impl();
}
bool SfxProgress::SetStateText
@@ -403,7 +403,7 @@ void SfxProgress::UnLock()
SAL_INFO("sfx.bastyp", "SfxProgress: unlocked");
pImp->bLocked = false;
- pImp->Enable_Impl(true);
+ pImp->Enable_Impl();
}