summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/progress.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-04 10:33:59 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-04 13:41:15 +0000
commitafd3ab436bf920ef80c642891e9e63133fca41a0 (patch)
tree69b5beddd7840c7acbd9f48b7f9ba36d3b21f105 /sfx2/source/bastyp/progress.cxx
parent8372d8532ba3aa3d1ec346a73d8fe9f406001f79 (diff)
loplugin:constantparam in sfx2
Change-Id: I9a5a9fd1f4f43e0b7ef13d14979cb231f6aa9d46 Reviewed-on: https://gerrit.libreoffice.org/23801 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2/source/bastyp/progress.cxx')
-rw-r--r--sfx2/source/bastyp/progress.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx
index 644724f638a7..201bc0621d3a 100644
--- a/sfx2/source/bastyp/progress.cxx
+++ b/sfx2/source/bastyp/progress.cxx
@@ -56,7 +56,7 @@ struct SfxProgress_Impl
sal_uIntPtr nMax;
clock_t nCreate;
clock_t nNextReschedule;
- bool bLocked, bAllDocs;
+ bool bLocked;
bool bWaitMode;
bool bAllowRescheduling;
bool bRunning;
@@ -74,8 +74,8 @@ struct SfxProgress_Impl
void SfxProgress_Impl::Enable_Impl()
{
- SfxObjectShell* pDoc = bAllDocs ? nullptr : static_cast<SfxObjectShell*>(xObjSh);
- SfxViewFrame *pFrame= SfxViewFrame::GetFirst(pDoc);
+ SfxObjectShell* pDoc = static_cast<SfxObjectShell*>(xObjSh);
+ SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pDoc);
while ( pFrame )
{
pFrame->Enable(true/*bEnable*/);
@@ -99,7 +99,6 @@ SfxProgress_Impl::SfxProgress_Impl( const OUString &/*rTitle*/ )
, nCreate(0)
, nNextReschedule(0)
, bLocked(false)
- , bAllDocs(false)
, bWaitMode(false)
, bAllowRescheduling(false)
, bRunning(false)
@@ -122,7 +121,6 @@ SfxProgress::SfxProgress
sal_uIntPtr nRange, /* Max value for range */
- bool bAll, /* Disable all documents or only the document of the ViewFram */
bool bWait /* Activate the wait-Pointer initially (TRUE) */
)
@@ -153,7 +151,6 @@ SfxProgress::SfxProgress
"sfx.bastyp",
"SfxProgress: created for '" << rText << "' at " << pImp->nCreate
<< "ds");
- pImp->bAllDocs = bAll;
pImp->pWorkWin = nullptr;
pImp->pView = nullptr;
@@ -333,7 +330,7 @@ void SfxProgress::Resume()
if ( pImp->bWaitMode )
{
- if ( pImp->xObjSh.Is() && !pImp->bAllDocs )
+ if ( pImp->xObjSh.Is() )
{
for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst(pImp->xObjSh);
pFrame;
@@ -377,7 +374,7 @@ void SfxProgress::Suspend()
pImp->xStatusInd->reset();
}
- if ( pImp->xObjSh.Is() && !pImp->bAllDocs )
+ if ( pImp->xObjSh.Is() )
{
for ( SfxViewFrame *pFrame =
SfxViewFrame::GetFirst(pImp->xObjSh);