diff options
author | Kevin Hunter <hunteke@earlham.edu> | 2010-11-18 18:47:55 -0500 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-19 09:55:14 +0000 |
commit | 9321d8acfed33545aecb18f2a6619041066cbc33 (patch) | |
tree | 3ffb4925e9095c9d35fa6297db57211ff51384fa /svtools/workben | |
parent | 324612c06bb1c16c575224d5791be1a0afee6a5e (diff) |
EasyHack: RTL_CONST macro from createFromAscii
Diffstat (limited to 'svtools/workben')
-rw-r--r-- | svtools/workben/cui/loadlib.cxx | 2 | ||||
-rw-r--r-- | svtools/workben/toolpanel/toolpaneltest.cxx | 4 | ||||
-rw-r--r-- | svtools/workben/treecontrol/treetest.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/svtools/workben/cui/loadlib.cxx b/svtools/workben/cui/loadlib.cxx index 48c41774852a..70da235bdb38 100644 --- a/svtools/workben/cui/loadlib.cxx +++ b/svtools/workben/cui/loadlib.cxx @@ -66,7 +66,7 @@ int __LOADONCALLAPI main( int argc, char **argv ) oslModule aLibrary = osl_loadModule( aLib.pData, SAL_LOADMODULE_DEFAULT ); if ( aLibrary ) { - void* pFunc = osl_getSymbol( aLibrary, OUString::createFromAscii( "GetVersionInfo" ).pData ); + void* pFunc = osl_getSymbol( aLibrary, OUString( RTL_CONSTASCII_USTRINGPARAM( "GetVersionInfo" )).pData ); if ( pFunc ) pInfo = (*(GetVersionInfo)pFunc)(); } diff --git a/svtools/workben/toolpanel/toolpaneltest.cxx b/svtools/workben/toolpanel/toolpaneltest.cxx index fe3c1d11d045..5f60670dad3b 100644 --- a/svtools/workben/toolpanel/toolpaneltest.cxx +++ b/svtools/workben/toolpanel/toolpaneltest.cxx @@ -868,8 +868,8 @@ void __EXPORT PanelDemo::Main() // initialize the UCB Sequence< Any > aArgs(2); - aArgs[0] <<= rtl::OUString::createFromAscii( "Local" ); - aArgs[1] <<= rtl::OUString::createFromAscii( "Office" ); + aArgs[0] <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Local" )); + aArgs[1] <<= rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Office" )); ::ucbhelper::ContentBroker::initialize( xSMgr, aArgs ); // run the application diff --git a/svtools/workben/treecontrol/treetest.cxx b/svtools/workben/treecontrol/treetest.cxx index bd309b650b8e..0fd806f1c5ba 100644 --- a/svtools/workben/treecontrol/treetest.cxx +++ b/svtools/workben/treecontrol/treetest.cxx @@ -348,7 +348,7 @@ int SAL_CALL main( int argc, char **argv ) */ Reference< XInterface > xInterface = xMultiComponentFactoryClient->createInstanceWithContext( - OUString::createFromAscii( "com.sun.star.bridge.UnoUrlResolver" ), + OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.bridge.UnoUrlResolver" )), xComponentContext ); Reference< XUnoUrlResolver > resolver( xInterface, UNO_QUERY ); @@ -369,7 +369,7 @@ int SAL_CALL main( int argc, char **argv ) // gets the server component context as property of the office component factory Reference< XPropertySet > xPropSet( xInterface, UNO_QUERY ); - xPropSet->getPropertyValue( OUString::createFromAscii("DefaultContext") ) >>= xComponentContext; + xPropSet->getPropertyValue( OUString( RTL_CONSTASCII_USTRINGPARAM( "DefaultContext" )) ) >>= xComponentContext; // gets the service manager from the office Reference< XMultiComponentFactory > xMultiComponentFactoryServer( |