diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 16:12:08 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-06-02 16:48:34 -0500 |
commit | acb7bd175abe6c7f793cc673feaab46c90b9a260 (patch) | |
tree | 206be73ecd4a2af07310e8efe348f9647382d331 /io/test/testcomponent.cxx | |
parent | d29d9399d48f85989cc8040f5ba334c38b40a544 (diff) |
targeted string re-work
Change-Id: I145731d9f28faf0065f5960f2c5a32f27d8c8620
Diffstat (limited to 'io/test/testcomponent.cxx')
-rw-r--r-- | io/test/testcomponent.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/io/test/testcomponent.cxx b/io/test/testcomponent.cxx index 6e789dba6e10..4114e14f6f2f 100644 --- a/io/test/testcomponent.cxx +++ b/io/test/testcomponent.cxx @@ -62,7 +62,7 @@ int main (int argc, char **argv) // create service manager Reference< XMultiServiceFactory > xSMgr = createRegistryServiceFactory( - OUString( RTL_CONSTASCII_USTRINGPARAM( "applicat.rdb" ) ) ); + OUString( "applicat.rdb" ) ); Reference < XImplementationRegistration > xReg; Reference < XSimpleRegistry > xSimpleReg; @@ -71,7 +71,7 @@ int main (int argc, char **argv) { // Create registration service Reference < XInterface > x = xSMgr->createInstance( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.registry.ImplementationRegistration")) ); + OUString("com.sun.star.registry.ImplementationRegistration") ); xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY ); } catch( Exception & ) { @@ -88,7 +88,7 @@ int main (int argc, char **argv) for( int n = 2 ; n <argc ; n ++ ) { OUString aDllName = OStringToOUString( argv[n] , RTL_TEXTENCODING_ASCII_US ); xReg->registerImplementation( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")), + OUString("com.sun.star.loader.SharedLibrary"), aDllName, xSimpleReg ); } @@ -109,13 +109,13 @@ int main (int argc, char **argv) #if defined(SAL_W32) OUString aDllName = OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US ); #else - OUString aDllName(RTL_CONSTASCII_USTRINGPARAM("lib")); + OUString aDllName("lib"); aDllName += OStringToOUString( sTestName , RTL_TEXTENCODING_ASCII_US ); - aDllName += OUString(RTL_CONSTASCII_USTRINGPARAM(".so")); + aDllName += OUString(".so"); #endif xReg->registerImplementation( - OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.loader.SharedLibrary")) , + OUString("com.sun.star.loader.SharedLibrary") , aDllName, xSimpleReg ); } |