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>
This commit is contained in:
@@ -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() );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user