diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 09:49:43 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 09:59:30 +0200 |
commit | 3d96f1ef5556869bb60522c9cfa5c9c6f8db0a18 (patch) | |
tree | dd4a4f6f457333ff91660824b817db22c461bf10 /svx/source/svdraw/svdoole2.cxx | |
parent | 3fdbf5935e0aff6350e861e868c7e0a12dd1bc8f (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I2f8c9cb71a06f7796576509f605796624e654422
Diffstat (limited to 'svx/source/svdraw/svdoole2.cxx')
-rw-r--r-- | svx/source/svdraw/svdoole2.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 574a4f566926..268fccd9ae12 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -303,8 +303,8 @@ void SAL_CALL SdrLightEmbeddedClient_Impl::saveObject() throw embed::ObjectSaveVetoException(); // the common persistence is supported by objects and links - xPersist = uno::Reference< embed::XCommonEmbedPersist >( mpObj->GetObjRef(), uno::UNO_QUERY_THROW ); - xModifiable = uno::Reference< util::XModifiable >( mpObj->GetParentXModel(), uno::UNO_QUERY ); + xPersist.set( mpObj->GetObjRef(), uno::UNO_QUERY_THROW ); + xModifiable.set( mpObj->GetParentXModel(), uno::UNO_QUERY ); } xPersist->storeOwn(); @@ -342,7 +342,7 @@ uno::Reference< util::XCloseable > SAL_CALL SdrLightEmbeddedClient_Impl::getComp SolarMutexGuard aGuard; if ( mpObj ) - xResult = uno::Reference< util::XCloseable >( mpObj->GetParentXModel(), uno::UNO_QUERY ); + xResult.set( mpObj->GetParentXModel(), uno::UNO_QUERY ); return xResult; } |