summaryrefslogtreecommitdiff
path: root/extensions/workben/testcomponent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/workben/testcomponent.cxx')
-rw-r--r--extensions/workben/testcomponent.cxx13
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 );
}