diff options
Diffstat (limited to 'shell/source/win32/workbench')
-rw-r--r-- | shell/source/win32/workbench/TestProxySet.cxx | 4 | ||||
-rw-r--r-- | shell/source/win32/workbench/TestSmplMail.cxx | 16 | ||||
-rw-r--r-- | shell/source/win32/workbench/TestSysShExec.cxx | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/shell/source/win32/workbench/TestProxySet.cxx b/shell/source/win32/workbench/TestProxySet.cxx index 3e69f78fd86d..843a80cf61b2 100644 --- a/shell/source/win32/workbench/TestProxySet.cxx +++ b/shell/source/win32/workbench/TestProxySet.cxx @@ -114,7 +114,7 @@ int SAL_CALL main(int, char*, char* ) try { Reference< XProxySettings > xProxySettings( - g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.system.SystemProxySettings" ) ), UNO_QUERY ); + g_xFactory->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SystemProxySettings")) ), UNO_QUERY ); if ( !xProxySettings.is() ) { @@ -141,7 +141,7 @@ int SAL_CALL main(int, char*, char* ) printf( "Test of SystemProxySettings successful\n" ); xProxySettings = Reference< XProxySettings >( - g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.system.SOProxySettings" ) ), UNO_QUERY ); + g_xFactory->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SOProxySettings")) ), UNO_QUERY ); if ( !xProxySettings.is() ) { diff --git a/shell/source/win32/workbench/TestSmplMail.cxx b/shell/source/win32/workbench/TestSmplMail.cxx index 9e0dcd4bc4f9..49e2701fa1ff 100644 --- a/shell/source/win32/workbench/TestSmplMail.cxx +++ b/shell/source/win32/workbench/TestSmplMail.cxx @@ -109,7 +109,7 @@ int SAL_CALL main(int , char*, char* ) try { Reference< XSimpleMailClientSupplier > xSmplMailClientSuppl( - g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.system.SimpleSystemMail" ) ), UNO_QUERY ); + g_xFactory->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SimpleSystemMail")) ), UNO_QUERY ); if ( !xSmplMailClientSuppl.is() ) { @@ -127,30 +127,30 @@ int SAL_CALL main(int , char*, char* ) if ( xSmplMailMsg.is( ) ) { - xSmplMailMsg->setRecipient( OUString::createFromAscii("tino.rachui@germany.sun.com") ); - xSmplMailMsg->setOriginator( OUString::createFromAscii( "tino.rachui@germany.sun.com" ) ); + xSmplMailMsg->setRecipient( OUString(RTL_CONSTASCII_USTRINGPARAM("tino.rachui@germany.sun.com")) ); + xSmplMailMsg->setOriginator( OUString(RTL_CONSTASCII_USTRINGPARAM("tino.rachui@germany.sun.com")) ); Sequence< OUString > ccRecips( 1 ); - ccRecips[0] = OUString::createFromAscii( "tino.rachui@germany.sun.com" ); + ccRecips[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("tino.rachui@germany.sun.com")); xSmplMailMsg->setCcRecipient( ccRecips ); Sequence< OUString > bccRecips( 1 ); - bccRecips[0] = OUString::createFromAscii( "tino.rachui@germany.sun.com" ); + bccRecips[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("tino.rachui@germany.sun.com")); xSmplMailMsg->setBccRecipient( bccRecips ); - xSmplMailMsg->setSubject( OUString::createFromAscii( "Mapi Test" ) ); + xSmplMailMsg->setSubject( OUString(RTL_CONSTASCII_USTRINGPARAM("Mapi Test")) ); Sequence< OUString > attachements( 2 ); - OUString aFile = OUString::createFromAscii( "D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testprx.exe" ); + OUString aFile(RTL_CONSTASCII_USTRINGPARAM("D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testprx.exe")); OUString aFileURL; osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL ); attachements[0] = aFileURL; - aFile = OUString::createFromAscii( "D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testsyssh.exe" ); + aFile = OUString(RTL_CONSTASCII_USTRINGPARAM("D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testsyssh.exe")); osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL ); attachements[1] = aFile; diff --git a/shell/source/win32/workbench/TestSysShExec.cxx b/shell/source/win32/workbench/TestSysShExec.cxx index c3c7b5d2d435..4151f95df86a 100644 --- a/shell/source/win32/workbench/TestSysShExec.cxx +++ b/shell/source/win32/workbench/TestSysShExec.cxx @@ -117,7 +117,7 @@ int SAL_CALL main(int nArgc, char* Argv[], char* ) //------------------------------------------------- Reference< XSystemShellExecute > xSysShExec( - g_xFactory->createInstance( OUString::createFromAscii( "com.sun.star.system.SystemShellExecute" ) ), UNO_QUERY ); + g_xFactory->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SystemShellExecute")) ), UNO_QUERY ); if ( !xSysShExec.is() ) { |