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/test/stm | |
parent | 59b072e22b0610abc7ffdbc75873ef5cbba58de7 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I11822c50fa66d038a3d6f38054ab35c2e613f077
Diffstat (limited to 'io/test/stm')
-rw-r--r-- | io/test/stm/datatest.cxx | 16 | ||||
-rw-r--r-- | io/test/stm/pumptest.cxx | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx index fb2600885364..f98f60276b5a 100644 --- a/io/test/stm/datatest.cxx +++ b/io/test/stm/datatest.cxx @@ -172,15 +172,15 @@ sal_Int32 ODataStreamTest::test( if( ! rSink.is() ) { x = m_rFactory->createInstance( "com.sun.star.io.DataInputStream" ); - rInput = Reference < XDataInputStream > ( x , UNO_QUERY); - rSink = Reference< XActiveDataSink > ( x , UNO_QUERY ); + rInput.set( x , UNO_QUERY); + rSink.set( x , UNO_QUERY ); } else if ( !rSource.is() ) { x = m_rFactory->createInstance( "com.sun.star.io.DataOutputStream" ); - rOutput = Reference< XDataOutputStream > ( x , UNO_QUERY ); - rSource = Reference< XActiveDataSource > ( x, UNO_QUERY ); + rOutput.set( x , UNO_QUERY ); + rSource.set( x, UNO_QUERY ); } OSL_ASSERT( rPipeInput.is() ); @@ -750,14 +750,14 @@ sal_Int32 OObjectStreamTest::test( const OUString& TestName, if( ! rSink.is() ) { x = m_rFactory->createInstance( "com.sun.star.io.ObjectInputStream" ); - rInput = Reference < XObjectInputStream > ( x , UNO_QUERY ); - rSink = Reference < XActiveDataSink > ( x , UNO_QUERY ); + rInput.set( x , UNO_QUERY ); + rSink.set( x , UNO_QUERY ); } else if ( !rSource.is() ) { x = m_rFactory->createInstance( "com.sun.star.io.ObjectOutputStream" ); - rOutput = Reference <XObjectOutputStream > ( x , UNO_QUERY ); - rSource = Reference <XActiveDataSource>( x, UNO_QUERY ); + rOutput.set( x , UNO_QUERY ); + rSource.set( x, UNO_QUERY ); } OSL_ASSERT( rPipeInput.is() ); diff --git a/io/test/stm/pumptest.cxx b/io/test/stm/pumptest.cxx index 465cf908ce20..b95d54c286c5 100644 --- a/io/test/stm/pumptest.cxx +++ b/io/test/stm/pumptest.cxx @@ -278,16 +278,16 @@ public: TestCase( const Reference< XMultiServiceFactory > & rSMgr, const Reference< XInterface > &r ) : m_rSmgr( rSMgr ), m_pTestListener( 0 ) { - m_rControl = Reference<XActiveDataControl>( r, UNO_QUERY ); + m_rControl.set( r, UNO_QUERY ); Reference< XActiveDataSource > rSource ( r, UNO_QUERY ); Reference< XActiveDataSink > rSink( r , UNO_QUERY ); - m_rOutSource = Reference< XOutputStream > ( createPipe() ); + m_rOutSource.set( createPipe() ); rSink->setInputStream(Reference< XInputStream> (m_rOutSource,UNO_QUERY)); Reference< XOutputStream > rOutSink( createPipe() ); - m_rInSink = Reference< XInputStream > ( rOutSink, UNO_QUERY ); + m_rInSink.set( rOutSink, UNO_QUERY ); rSource->setOutputStream( rOutSink ); m_pTestListener = new TestListener(); |