[Libreoffice-commits] core.git: sfx2/source
Mike Kaganski
mike.kaganski at collabora.com
Mon Jul 9 23:25:54 UTC 2018
sfx2/source/doc/objstor.cxx | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
New commits:
commit d27e4007c697f5eb78181181a0ddcd663ac265b2
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Mon Jul 9 23:48:34 2018 +0200
Remove redundant variable
Change-Id: Iee6a7ade18d69655d99ab0d0eaed84cbb72e9128
Reviewed-on: https://gerrit.libreoffice.org/57209
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index f64a98ac4eaf..98435a9022d3 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -3108,8 +3108,6 @@ bool SfxObjectShell::SaveChildren( bool bObjectsOnly )
bool SfxObjectShell::SaveAsChildren( SfxMedium& rMedium )
{
- bool bResult = true;
-
uno::Reference < embed::XStorage > xStorage = rMedium.GetStorage();
if ( !xStorage.is() )
return false;
@@ -3123,10 +3121,7 @@ bool SfxObjectShell::SaveAsChildren( SfxMedium& rMedium )
GetEmbeddedObjectContainer().StoreAsChildren(bOasis,SfxObjectCreateMode::EMBEDDED == eCreateMode,xStorage);
}
- if ( bResult )
- bResult = CopyStoragesOfUnknownMediaType( GetStorage(), xStorage );
-
- return bResult;
+ return CopyStoragesOfUnknownMediaType(GetStorage(), xStorage);
}
bool SfxObjectShell::SaveCompletedChildren()
More information about the Libreoffice-commits
mailing list