diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-18 19:28:40 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-08-18 21:51:32 +0200 |
commit | 95f1e32a3300364a250b097b357345cfafe76d2a (patch) | |
tree | 64f352e12c4d5328c0d9e1c43721c39d207c17a7 /svx/source/svdraw | |
parent | 1f42157e2457e30a7f18fdf9d7bb5bddfb819f04 (diff) |
GetObjRef already returns the needed reference
Change-Id: I9f18bcb56906ee75ec015bbd38de26dcb2828d06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120639
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r-- | svx/source/svdraw/svdoole2.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 750f458ad97a..77e65b30330f 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -1797,8 +1797,7 @@ uno::Reference < embed::XEmbeddedObject > const & SdrOle2Obj::GetObjRef_NoInit() uno::Reference< frame::XModel > SdrOle2Obj::getXModel() const { - GetObjRef(); - if ( svt::EmbeddedObjectRef::TryRunningState(mpImpl->mxObjRef.GetObject()) ) + if (svt::EmbeddedObjectRef::TryRunningState(GetObjRef())) return uno::Reference< frame::XModel >( mpImpl->mxObjRef->getComponent(), uno::UNO_QUERY ); else return uno::Reference< frame::XModel >(); |