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
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();
}
......
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