diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-06 13:10:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-06 21:25:03 +0200 |
commit | b83a8483a1426ba400480d33f7df321fcc02e64d (patch) | |
tree | ce7236e69afcbd25ceefd52d3c1847b7f8490cce | |
parent | 9d0a8f7a2e3e473ebb3042f90dd82696dd8705da (diff) |
avoid some ref-counting
Change-Id: I11465f139044bc75085d1bb9a5f207889356ee58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133961
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | svx/source/svdraw/svdetc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdetc.cxx b/svx/source/svdraw/svdetc.cxx index 8ca86d593287..6f4ec03d46ad 100644 --- a/svx/source/svdraw/svdetc.cxx +++ b/svx/source/svdraw/svdetc.cxx @@ -125,7 +125,7 @@ IMPL_LINK_NOARG(OLEObjCache, UnloadCheckHdl, Timer*, void) try { // it is important to get object without reinitialization to avoid reentrance - uno::Reference< embed::XEmbeddedObject > xUnloadObj = pUnloadObj->GetObjRef_NoInit(); + const uno::Reference< embed::XEmbeddedObject > & xUnloadObj = pUnloadObj->GetObjRef_NoInit(); bool bUnload = !xUnloadObj || SdrOle2Obj::CanUnloadRunningObj( xUnloadObj, pUnloadObj->GetAspect() ); |