diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-10-28 03:09:02 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-10-28 08:23:32 +0100 |
commit | 36880d76299e913761f03bbde1b6ca6bea393b5a (patch) | |
tree | 05a880ec60124a405a2d817b2598f23a2bbba423 /sfx2 | |
parent | 85985a6ad85ebd3debf63e286dacbe5945178796 (diff) |
tdf#120703 PVS: V547 Expression is always true/false
Change-Id: I1e5098e11f1e5e2f7c5518ea05c57512f58b585b
Reviewed-on: https://gerrit.libreoffice.org/62464
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/objstor.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx index af28e43a7185..78f00adceb57 100644 --- a/sfx2/source/doc/objstor.cxx +++ b/sfx2/source/doc/objstor.cxx @@ -1512,14 +1512,12 @@ bool SfxObjectShell::SaveTo_Impl aInfo.TimeStamp.Minutes = aTime.GetMin(); aInfo.TimeStamp.Seconds = aTime.GetSec(); - if ( bOk ) - { - // add new version information into the versionlist and save the versionlist - // the version list must have been transferred from the "old" medium before - rMedium.AddVersion_Impl( aInfo ); - rMedium.SaveVersionList_Impl(); - bOk = PutURLContentsToVersionStream_Impl( aTmpVersionURL, xMedStorage, aInfo.Identifier ); - } + // add new version information into the versionlist and save the versionlist + // the version list must have been transferred from the "old" medium before + rMedium.AddVersion_Impl(aInfo); + rMedium.SaveVersionList_Impl(); + bOk = PutURLContentsToVersionStream_Impl(aTmpVersionURL, xMedStorage, + aInfo.Identifier); } else if ( bOk && ( pImpl->bIsSaving || pImpl->bPreserveVersions ) ) { |