diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 14:16:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-04 14:20:51 +0200 |
commit | fcb8df3bcf551fc3437e6c7c8ddb24dc5a09db02 (patch) | |
tree | b00511c71c3ea467e1f029cfdb80bb6ce72960b5 /io/source | |
parent | 59b072e22b0610abc7ffdbc75873ef5cbba58de7 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
Diffstat (limited to 'io/source')
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 3 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 4 | ||||
-rw-r--r-- | io/source/stm/odata.cxx | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 43c86cd8bf75..e2b6ffd58d0f 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -210,8 +210,7 @@ namespace io_acceptor "trying to get service %s\n", OUStringToOString( delegatee, RTL_TEXTENCODING_ASCII_US).getStr()); - _xAcceptor = Reference<XAcceptor>( - _xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY); + _xAcceptor.set(_xSMgr->createInstanceWithContext(delegatee, _xCtx), UNO_QUERY); if(!_xAcceptor.is()) { diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index e564d3eb5669..25fa3bdc373b 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -94,7 +94,7 @@ namespace stoc_connector if( pConn->m_pipe.create( aName.pData, osl_Pipe_OPEN, osl::Security() ) ) { - r = Reference < XConnection > ( static_cast<XConnection *>(pConn) ); + r.set( static_cast<XConnection *>(pConn) ); } else { @@ -141,7 +141,7 @@ namespace stoc_connector sizeof( nTcpNoDelay ) , osl_Socket_LevelTcp ); } pConn->completeConnectionString(); - r = Reference< XConnection > ( static_cast<XConnection *>(pConn) ); + r.set( static_cast<XConnection *>(pConn) ); } else { diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx index ee37bcbd655c..c626661cb6ce 100644 --- a/io/source/stm/odata.cxx +++ b/io/source/stm/odata.cxx @@ -1310,7 +1310,7 @@ Reference< XPersistObject > OObjectInputStream::readObject() throw (css::io::IO { // load the object Reference< XInterface > x = m_rSMgr->createInstanceWithContext( aName, m_rCxt ); - xLoadedObj = Reference< XPersistObject >( x, UNO_QUERY ); + xLoadedObj.set( x, UNO_QUERY ); if( xLoadedObj.is() ) { sal_uInt32 nSize = m_aPersistVector.size(); |