diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-15 11:05:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-19 10:29:31 +0200 |
commit | 610b2b94b33b0fc2d79cd515f9e293ca1c2610e8 (patch) | |
tree | 6eab2639cb8104ca54daa3f7a2ebd83ef1566cf0 /sax/test | |
parent | 2c35fff7eca3a143d28dc75e6a73fe1101d2af77 (diff) |
remove unnecessary use of OUString constructor when assigning
change code like
aStr = OUString("xxxx");
to
aStr = "xxxx";
Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
Diffstat (limited to 'sax/test')
-rw-r--r-- | sax/test/sax/testsax.cxx | 10 | ||||
-rw-r--r-- | sax/test/testcomponent.cxx | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx index 815e7fccee02..fff579fc4e0c 100644 --- a/sax/test/sax/testsax.cxx +++ b/sax/test/sax/testsax.cxx @@ -454,7 +454,7 @@ void OSaxParserTest::testSimple( const Reference < XParser > &rParser ) Reference< XInputStream > rInStream; OUString sInput; rInStream = createStreamFromSequence( seqBytes , m_rFactory ); - sInput = OUString( OUString( "internal") ); + sInput = "internal"; if( rParser.is() ) { InputSource source; @@ -519,7 +519,7 @@ void OSaxParserTest::testNamespaces( const Reference < XParser > &rParser ) OUString sInput; rInStream = createStreamFromSequence( seqBytes , m_rFactory ); - sInput = OUString( "internal" ); + sInput = "internal"; if( rParser.is() ) { InputSource source; @@ -572,7 +572,7 @@ void OSaxParserTest::testEncoding( const Reference < XParser > &rParser ) OUString sInput; rInStream = createStreamFromSequence( seqBytes , m_rFactory ); - sInput = OUString( "internal" ); + sInput = "internal"; if( rParser.is() ) { InputSource source; @@ -606,7 +606,7 @@ void OSaxParserTest::testFile( const Reference < XParser > & rParser ) { Reference< XInputStream > rInStream = createStreamFromFile( "testsax.xml" , m_rFactory ); - OUString sInput = OUString( "testsax.xml" ); + OUString sInput = "testsax.xml"; if( rParser.is() && rInStream.is() ) { InputSource source; @@ -664,7 +664,7 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser ) { Reference < XInputStream > rInStream = createStreamFromFile( "testPerformance.xml" , m_rFactory ); - OUString sInput = OUString( "testperformance.xml" ); + OUString sInput = "testperformance.xml"; if( rParser.is() && rInStream.is() ) { InputSource source; diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx index f8ef724e063d..0413af256c85 100644 --- a/sax/test/testcomponent.cxx +++ b/sax/test/testcomponent.cxx @@ -89,7 +89,7 @@ int main (int argc, char **argv) #ifdef SAL_W32 OUString aDllName = OStringToOUString( argv[n] , RTL_TEXTENCODING_ASCII_US ); #else - OUString aDllName = OUString( "lib"); + OUString aDllName = "lib"; aDllName += OStringToOUString( argv[n] , RTL_TEXTENCODING_ASCII_US ); aDllName += ".so"; #endif @@ -117,7 +117,7 @@ int main (int argc, char **argv) #ifdef SAL_W32 OUString aDllName = OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US ); #else - OUString aDllName = OUString( "lib"); + OUString aDllName = "lib"; aDllName += OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US ); aDllName += ".so"; #endif |