summaryrefslogtreecommitdiffstats
path: root/extensions/source/ole/unoobjw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 15:20:12 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-02 06:46:53 +0000
commitdd1729f854af4f27f396d51d3c930c95d1011001 (patch)
treeb65685fee797f657a3bc950902956c3820fd5106 /extensions/source/ole/unoobjw.cxx
parentuse uno::Reference::set method instead of assignment (diff)
downloadcore-dd1729f854af4f27f396d51d3c930c95d1011001.tar.gz
core-dd1729f854af4f27f396d51d3c930c95d1011001.zip
use uno::Reference::set method instead of assignment
Change-Id: Ib297f2ab1c0c82703030f28d034d24f8a84a85ea Reviewed-on: https://gerrit.libreoffice.org/19732 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'extensions/source/ole/unoobjw.cxx')
-rw-r--r--extensions/source/ole/unoobjw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index a8a45aab68a1..5d1c62ddc9ca 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -146,7 +146,7 @@ STDMETHODIMP_(ULONG) InterfaceOleWrapper_Impl::Release()
// IUnoObjectWrapper --------------------------------------------------------
STDMETHODIMP InterfaceOleWrapper_Impl::getWrapperXInterface( Reference<XInterface>* pXInt)
{
- *pXInt= Reference<XInterface>( static_cast<XWeak*>( this), UNO_QUERY);
+ pXInt->set( static_cast<XWeak*>( this), UNO_QUERY);
return pXInt->is() ? S_OK : E_FAIL;
}
STDMETHODIMP InterfaceOleWrapper_Impl::getOriginalUnoObject( Reference<XInterface>* pXInt)
@@ -514,7 +514,7 @@ void SAL_CALL InterfaceOleWrapper_Impl::initialize( const Sequence< Any >& aArgu
break;
}
- m_xExactName= Reference<XExactName>( m_xInvocation, UNO_QUERY);
+ m_xExactName.set( m_xInvocation, UNO_QUERY);
}
Reference< XInterface > InterfaceOleWrapper_Impl::createUnoWrapperInstance()