Kaydet (Commit) 4665a216 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constantparam in sfx2

Change-Id: I12aa9b28a9a1e66425717820cfcedff55434dd2f
üst 4b37994a
...@@ -67,30 +67,30 @@ struct SfxProgress_Impl ...@@ -67,30 +67,30 @@ struct SfxProgress_Impl
SfxViewFrame* pView; SfxViewFrame* pView;
explicit SfxProgress_Impl( const OUString& ); 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); SfxObjectShell* pDoc = bAllDocs ? nullptr : static_cast<SfxObjectShell*>(xObjSh);
SfxViewFrame *pFrame= SfxViewFrame::GetFirst(pDoc); SfxViewFrame *pFrame= SfxViewFrame::GetFirst(pDoc);
while ( pFrame ) while ( pFrame )
{ {
pFrame->Enable(bEnable); pFrame->Enable(true/*bEnable*/);
pFrame->GetDispatcher()->Lock( !bEnable ); pFrame->GetDispatcher()->Lock( false );
pFrame = SfxViewFrame::GetNext(*pFrame, pDoc); pFrame = SfxViewFrame::GetNext(*pFrame, pDoc);
} }
if ( pView ) if ( pView )
{ {
pView->Enable( bEnable ); pView->Enable( true/*bEnable*/ );
pView->GetDispatcher()->Lock( !bEnable ); pView->GetDispatcher()->Lock( false );
} }
if ( !pDoc ) if ( !pDoc )
SfxGetpApp()->GetAppDispatcher_Impl()->Lock( !bEnable ); SfxGetpApp()->GetAppDispatcher_Impl()->Lock( false );
} }
...@@ -209,7 +209,7 @@ void SfxProgress::Stop() ...@@ -209,7 +209,7 @@ void SfxProgress::Stop()
else else
SfxGetpApp()->SetProgress_Impl(nullptr); SfxGetpApp()->SetProgress_Impl(nullptr);
if ( pImp->bLocked ) if ( pImp->bLocked )
pImp->Enable_Impl(true); pImp->Enable_Impl();
} }
bool SfxProgress::SetStateText bool SfxProgress::SetStateText
...@@ -403,7 +403,7 @@ void SfxProgress::UnLock() ...@@ -403,7 +403,7 @@ void SfxProgress::UnLock()
SAL_INFO("sfx.bastyp", "SfxProgress: unlocked"); SAL_INFO("sfx.bastyp", "SfxProgress: unlocked");
pImp->bLocked = false; pImp->bLocked = false;
pImp->Enable_Impl(true); pImp->Enable_Impl();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment