summaryrefslogtreecommitdiff
path: root/io/test/stm/datatest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'io/test/stm/datatest.cxx')
-rw-r--r--io/test/stm/datatest.cxx16
1 files changed, 8 insertions, 8 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() );