diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-30 08:40:11 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-30 08:59:59 +0000 |
commit | 3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch) | |
tree | 6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /io/test/stm | |
parent | 2e528df76b168a221c6d251d9b076bce5ba051a3 (diff) |
UNO: no need to use OUString constructor when calling createInstance
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526
Reviewed-on: https://gerrit.libreoffice.org/19682
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
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 a06b4d565ff8..657bc570d139 100644 --- a/io/test/stm/datatest.cxx +++ b/io/test/stm/datatest.cxx @@ -164,21 +164,21 @@ sal_Int32 ODataStreamTest::test( Reference < XInterface > x = m_rFactory->createInstance( - OUString( "com.sun.star.io.Pipe" )); + "com.sun.star.io.Pipe" ); Reference < XInputStream > rPipeInput( x , UNO_QUERY ); Reference < XOutputStream > rPipeOutput( x , UNO_QUERY ); if( ! rSink.is() ) { x = m_rFactory->createInstance( - OUString( "com.sun.star.io.DataInputStream") ); + "com.sun.star.io.DataInputStream" ); rInput = Reference < XDataInputStream > ( x , UNO_QUERY); rSink = Reference< XActiveDataSink > ( x , UNO_QUERY ); } else if ( !rSource.is() ) { x = m_rFactory->createInstance( - OUString( "com.sun.star.io.DataOutputStream" ) ); + "com.sun.star.io.DataOutputStream" ); rOutput = Reference< XDataOutputStream > ( x , UNO_QUERY ); rSource = Reference< XActiveDataSource > ( x, UNO_QUERY ); } @@ -724,13 +724,13 @@ sal_Int32 OObjectStreamTest::test( const OUString& TestName, Reference < XInterface > x = m_rFactory->createInstance( - OUString( "com.sun.star.io.Pipe" ) ); + "com.sun.star.io.Pipe" ); Reference <XInputStream > rPipeInput( x , UNO_QUERY ); Reference <XOutputStream > rPipeOutput( x , UNO_QUERY ); x = m_rFactory->createInstance( - OUString( "com.sun.star.io.MarkableInputStream" ) ); + "com.sun.star.io.MarkableInputStream" ); Reference <XInputStream > markableInput( x , UNO_QUERY ); Reference <XActiveDataSink> markableSink( x , UNO_QUERY ); @@ -750,13 +750,13 @@ sal_Int32 OObjectStreamTest::test( const OUString& TestName, if( ! rSink.is() ) { x = m_rFactory->createInstance( - OUString( "com.sun.star.io.ObjectInputStream" )); + "com.sun.star.io.ObjectInputStream" ); rInput = Reference < XObjectInputStream > ( x , UNO_QUERY ); rSink = Reference < XActiveDataSink > ( x , UNO_QUERY ); } else if ( !rSource.is() ) { x = m_rFactory->createInstance( - OUString( "com.sun.star.io.ObjectOutputStream" )); + "com.sun.star.io.ObjectOutputStream" ); rOutput = Reference <XObjectOutputStream > ( x , UNO_QUERY ); rSource = Reference <XActiveDataSource>( x, UNO_QUERY ); } @@ -924,7 +924,7 @@ void OObjectStreamTest::testObject( const Reference< XObjectOutputStream > { Reference < XInterface > x = m_rFactory->createInstance( - OUString( "test.com.sun.star.io.PersistTest")); + "test.com.sun.star.io.PersistTest"); Reference< XPersistObject > persistRef( x , UNO_QUERY ); ERROR_ASSERT( persistRef.is() , "couldn't instantiate PersistTest object" ); diff --git a/io/test/stm/pumptest.cxx b/io/test/stm/pumptest.cxx index c4b83d5c653e..465cf908ce20 100644 --- a/io/test/stm/pumptest.cxx +++ b/io/test/stm/pumptest.cxx @@ -311,7 +311,7 @@ private: Reference< XOutputStream > createPipe() { Reference< XOutputStream > rOut( m_rSmgr->createInstance( - OUString("com.sun.star.io.Pipe")),UNO_QUERY); + "com.sun.star.io.Pipe"),UNO_QUERY); return rOut; } }; @@ -403,9 +403,9 @@ void OPumpTest::testWrongUsage( const Reference< XInterface > &r ) Reference< XActiveDataControl > rControl( r, UNO_QUERY ); Reference< XInputStream > rIn( m_rSmgr->createInstance( - OUString("com.sun.star.io.DataInputStream")),UNO_QUERY); + "com.sun.star.io.DataInputStream"),UNO_QUERY); Reference< XOutputStream > rOut( m_rSmgr->createInstance( - OUString("com.sun.star.io.DataOutputStream")),UNO_QUERY); + "com.sun.star.io.DataOutputStream"),UNO_QUERY); rSink->setInputStream( rIn ); rSource->setOutputStream( rOut ); |