[Libreoffice-commits] core.git: svx/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 18 15:15:46 UTC 2021
svx/source/svdraw/svdoole2.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit d4a1aaca9fdeadcba86d7144165a691ea95ccf89
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Aug 18 15:23:39 2021 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Aug 18 17:15:08 2021 +0200
This check is redundant
It was checked a few lines above.
Change-Id: I04ae6fd34f36c54dee9097ff05aefcc9447738dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120635
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx
index 8d9997e0da70..750f458ad97a 100644
--- a/svx/source/svdraw/svdoole2.cxx
+++ b/svx/source/svdraw/svdoole2.cxx
@@ -1725,14 +1725,7 @@ bool SdrOle2Obj::Unload()
// Already unloaded.
return true;
- bool bUnloaded = false;
-
- if ( mpImpl->mxObjRef.is() )
- {
- bUnloaded = Unload( mpImpl->mxObjRef.GetObject(), GetAspect() );
- }
-
- return bUnloaded;
+ return Unload(mpImpl->mxObjRef.GetObject(), GetAspect());
}
void SdrOle2Obj::GetObjRef_Impl()
More information about the Libreoffice-commits
mailing list