svx/source/svdraw/svdetc.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b83a8483a1426ba400480d33f7df321fcc02e64d
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri May 6 13:10:06 2022 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Fri May 6 21:25:03 2022 +0200

    avoid some ref-counting
    
    Change-Id: I11465f139044bc75085d1bb9a5f207889356ee58
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133961
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

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() );
 

Reply via email to