diff options
author | Julien Nabet <serval@ilapharm.com> | 2010-11-23 22:41:07 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-24 07:56:52 +0100 |
commit | 648589a0bd6c72b8b6b125644b43c6efad17ead1 (patch) | |
tree | 9c519a5c237c05f2e8541f0afa1e646e4e154381 /extensions/workben | |
parent | 95e7e542438384975a95e7309e23a07a0986fcc7 (diff) |
RTL patch
Diffstat (limited to 'extensions/workben')
-rw-r--r-- | extensions/workben/testcomponent.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/extensions/workben/testcomponent.cxx b/extensions/workben/testcomponent.cxx index 705d451da5be..9ba161f9eea8 100644 --- a/extensions/workben/testcomponent.cxx +++ b/extensions/workben/testcomponent.cxx @@ -84,15 +84,10 @@ int __LOADONCALLAPI main (int argc, char **argv) try { // Create registration service XInterfaceRef x = xSMgr->createInstance( - UString::createFromAscii( "com.sun.star.registry.ImplementationRegistration" ) ); + UString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.registry.ImplementationRegistration" )) ); x->queryInterface( XImplementationRegistration::getSmartUik() , xReg ); -/* x = xSMgr->createInstance( L"stardiv.uno.repos.SimpleRegistry" ); - OSL_ASSERT( x.is() ); - x->queryInterface( XSimpleRegistry::getSmartUik() , xSimpleReg ); - OSL_ASSERT( xSimpleReg.is() ); - xSimpleReg->open( L"testcomp.rdb" , FALSE , TRUE ); -*/ } + } catch( Exception& e ) { printf( "%s\n" , OWStringToOString( e.getName() , CHARSET_SYSTEM ).getStr() ); exit(1); @@ -108,7 +103,7 @@ int __LOADONCALLAPI main (int argc, char **argv) UString aDllName( OStringToOWString( szBuf, CHARSET_SYSTEM ) ); xReg->registerImplementation( - UString::createFromAscii( "com.sun.star.loader.SharedLibrary" ), + UString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.loader.SharedLibrary" )), aDllName, xSimpleReg ); } @@ -129,7 +124,7 @@ int __LOADONCALLAPI main (int argc, char **argv) ORealDynamicLoader::computeModuleName( sTestName.getStr() , szBuf, 1024 ); UString aDllName = OStringToOWString( szBuf, CHARSET_SYSTEM ); xReg->registerImplementation( - UString::createFromAscii( "com.sun.star.loader.SharedLibrary" ) , + UString(RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.loader.SharedLibrary" )) , aDllName, xSimpleReg ); } |