diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-27 18:41:11 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-27 18:41:11 +0200 |
commit | 694afdbaecfab1f98279fafd1483f3c2734ce788 (patch) | |
tree | f63c8ba2176de5c4a5ba1bf561d11241e569ac09 /sfx2/source | |
parent | bf64e7d61596170ee9f9823d96a91fd3fbff91a8 (diff) |
SfxProgress::SetState always returns true
Change-Id: Ib606b0391f814ea9ff4383397a40a8a692563fa3
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/bastyp/progress.cxx | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/sfx2/source/bastyp/progress.cxx b/sfx2/source/bastyp/progress.cxx index 3524aea5249f..df5a8fea3247 100644 --- a/sfx2/source/bastyp/progress.cxx +++ b/sfx2/source/bastyp/progress.cxx @@ -208,7 +208,7 @@ void SfxProgress::Stop() pImpl->Enable_Impl(); } -bool SfxProgress::SetStateText +void SfxProgress::SetStateText ( sal_uLong nNewVal, /* New value for the progress-bar */ const OUString& rNewVal /* Status as Text */ @@ -216,10 +216,10 @@ bool SfxProgress::SetStateText { pImpl->aStateText = rNewVal; - return SetState( nNewVal ); + SetState( nNewVal ); } -bool SfxProgress::SetState +void SfxProgress::SetState ( sal_uLong nNewVal, /* new value for the progress bar */ @@ -228,18 +228,10 @@ bool SfxProgress::SetState /* [Description] Setting the current status, after a time delay Reschedule is called. - - [Return value] - - bool TRUE - Proceed with the action - - FALSE - Cancel action */ { - if( pImpl->pActiveProgress ) return true; + if( pImpl->pActiveProgress ) return; nVal = nNewVal; @@ -300,8 +292,6 @@ bool SfxProgress::SetState { pImpl->xStatusInd->setValue( nNewVal ); } - - return true; } |