diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 15:20:12 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-02 06:46:53 +0000 |
commit | dd1729f854af4f27f396d51d3c930c95d1011001 (patch) | |
tree | b65685fee797f657a3bc950902956c3820fd5106 /extensions/source/ole/unoobjw.cxx | |
parent | use uno::Reference::set method instead of assignment (diff) | |
download | core-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.cxx | 4 |
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() |