diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-19 19:34:59 +0100 |
---|---|---|
committer | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-19 19:34:59 +0100 |
commit | 60fec7754d70f0527d6ae80455b4ca876b7d451b (patch) | |
tree | cdc391e4422ff7220c889bf52fc566f9e710bbc4 /shell/source/win32 | |
parent | 0a994bff157dfdd9a879017e8ac11233cb9a7bc9 (diff) |
TL_CONSTASCII_USTRINGPARAM in libs core 16
Diffstat (limited to 'shell/source/win32')
-rw-r--r-- | shell/source/win32/SysShExec.cxx | 14 | ||||
-rw-r--r-- | shell/source/win32/SysShentry.cxx | 4 | ||||
-rw-r--r-- | shell/source/win32/simplemail/smplmailclient.cxx | 28 | ||||
-rw-r--r-- | shell/source/win32/simplemail/smplmailentry.cxx | 4 | ||||
-rw-r--r-- | shell/source/win32/simplemail/smplmailsuppl.cxx | 4 | ||||
-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 |
8 files changed, 38 insertions, 38 deletions
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx index bf430b2e6497..46ca21240d57 100644 --- a/shell/source/win32/SysShExec.cxx +++ b/shell/source/win32/SysShExec.cxx @@ -84,7 +84,7 @@ namespace // private Sequence< OUString > SAL_CALL SysShExec_getSupportedServiceNames() { Sequence< OUString > aRet(1); - aRet[0] = OUString::createFromAscii("com.sun.star.sys.shell.SystemShellExecute"); + aRet[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sys.shell.SystemShellExecute")); return aRet; } @@ -202,8 +202,8 @@ namespace // private // trying to identify a jump mark //----------------------------------------- - const OUString JUMP_MARK_HTM = OUString::createFromAscii(".htm#"); - const OUString JUMP_MARK_HTML = OUString::createFromAscii(".html#"); + const OUString JUMP_MARK_HTM(RTL_CONSTASCII_USTRINGPARAM(".htm#")); + const OUString JUMP_MARK_HTML(RTL_CONSTASCII_USTRINGPARAM(".html#")); const sal_Unicode HASH_MARK = (sal_Unicode)'#'; bool has_jump_mark(const OUString& system_path, sal_Int32* jmp_mark_start = NULL) @@ -288,13 +288,13 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa // parameter checking if (0 == aCommand.getLength()) throw IllegalArgumentException( - OUString::createFromAscii( "Empty command" ), + OUString(RTL_CONSTASCII_USTRINGPARAM("Empty command")), static_cast< XSystemShellExecute* >( this ), 1 ); if (!(nFlags >= DEFAULTS && nFlags <= NO_SYSTEM_ERROR_MESSAGE)) throw IllegalArgumentException( - OUString::createFromAscii( "Invalid Flags specified" ), + OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid Flags specified")), static_cast< XSystemShellExecute* >( this ), 3 ); @@ -344,7 +344,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa psxErr = MapError(psxErr); throw SystemShellExecuteException( - OUString::createFromAscii("Error executing command"), + OUString(RTL_CONSTASCII_USTRINGPARAM("Error executing command")), static_cast< XSystemShellExecute* >(this), psxErr); } @@ -357,7 +357,7 @@ void SAL_CALL CSysShExec::execute( const OUString& aCommand, const OUString& aPa OUString SAL_CALL CSysShExec::getImplementationName( ) throw( RuntimeException ) { - return OUString::createFromAscii( SYSSHEXEC_IMPL_NAME ); + return OUString(RTL_CONSTASCII_USTRINGPARAM( SYSSHEXEC_IMPL_NAME )); } // ------------------------------------------------- diff --git a/shell/source/win32/SysShentry.cxx b/shell/source/win32/SysShentry.cxx index c96a1ea7dfdb..848201c604f2 100644 --- a/shell/source/win32/SysShentry.cxx +++ b/shell/source/win32/SysShentry.cxx @@ -100,7 +100,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr { Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) ); pXNewKey->createKey( - OUString::createFromAscii( SYSSHEXEC_REGKEY_NAME ) ); + OUString(RTL_CONSTASCII_USTRINGPARAM( SYSSHEXEC_REGKEY_NAME )) ); } catch( InvalidRegistryException& ) { @@ -124,7 +124,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, SYSSHEXEC_IMPL_NAME ) ) ) { Sequence< OUString > aSNS( 1 ); - aSNS.getArray( )[0] = OUString::createFromAscii( SYSSHEXEC_SERVICE_NAME ); + aSNS.getArray( )[0] = OUString(RTL_CONSTASCII_USTRINGPARAM( SYSSHEXEC_SERVICE_NAME )); Reference< XSingleServiceFactory > xFactory ( createOneInstanceFactory( reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ), diff --git a/shell/source/win32/simplemail/smplmailclient.cxx b/shell/source/win32/simplemail/smplmailclient.cxx index 6ca98590ddee..e47a767c0aeb 100644 --- a/shell/source/win32/simplemail/smplmailclient.cxx +++ b/shell/source/win32/simplemail/smplmailclient.cxx @@ -63,15 +63,15 @@ using css::system::SimpleMailClientFlags::NO_LOGON_DIALOG; typedef std::vector<rtl::OUString> StringList_t; typedef StringList_t::const_iterator StringListIterator_t; -const rtl::OUString TO = rtl::OUString::createFromAscii("--to"); -const rtl::OUString CC = rtl::OUString::createFromAscii("--cc"); -const rtl::OUString BCC = rtl::OUString::createFromAscii("--bcc"); -const rtl::OUString FROM = rtl::OUString::createFromAscii("--from"); -const rtl::OUString SUBJECT = rtl::OUString::createFromAscii("--subject"); -const rtl::OUString BODY = rtl::OUString::createFromAscii("--body"); -const rtl::OUString ATTACH = rtl::OUString::createFromAscii("--attach"); -const rtl::OUString FLAG_MAPI_DIALOG = rtl::OUString::createFromAscii("--mapi-dialog"); -const rtl::OUString FLAG_MAPI_LOGON_UI = rtl::OUString::createFromAscii("--mapi-logon-ui"); +const rtl::OUString TO(RTL_CONSTASCII_USTRINGPARAM("--to")); +const rtl::OUString CC(RTL_CONSTASCII_USTRINGPARAM("--cc")); +const rtl::OUString BCC(RTL_CONSTASCII_USTRINGPARAM("--bcc")); +const rtl::OUString FROM(RTL_CONSTASCII_USTRINGPARAM("--from")); +const rtl::OUString SUBJECT(RTL_CONSTASCII_USTRINGPARAM("--subject")); +const rtl::OUString BODY(RTL_CONSTASCII_USTRINGPARAM("--body")); +const rtl::OUString ATTACH(RTL_CONSTASCII_USTRINGPARAM("--attach")); +const rtl::OUString FLAG_MAPI_DIALOG(RTL_CONSTASCII_USTRINGPARAM("--mapi-dialog")); +const rtl::OUString FLAG_MAPI_LOGON_UI(RTL_CONSTASCII_USTRINGPARAM("--mapi-logon-ui")); namespace /* private */ { @@ -232,7 +232,7 @@ void CSmplMailClient::assembleCommandLine( osl::FileBase::RC err = osl::FileBase::getSystemPathFromFileURL(attachments[i], sysPath); if (err != osl::FileBase::E_None) throw IllegalArgumentException( - rtl::OUString::createFromAscii("Invalid attachment file URL"), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid attachment file URL")), static_cast<XSimpleMailClient*>(this), 1); @@ -258,7 +258,7 @@ void SAL_CALL CSmplMailClient::sendSimpleMailMessage( if (!executeSenddoc(senddocParams)) throw Exception( - rtl::OUString::createFromAscii("Send email failed"), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Send email failed")), static_cast<XSimpleMailClient*>(this)); } @@ -267,7 +267,7 @@ void CSmplMailClient::validateParameter( { if (!xSimpleMailMessage.is()) throw IllegalArgumentException( - rtl::OUString::createFromAscii("Empty mail message reference"), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Empty mail message reference")), static_cast<XSimpleMailClient*>(this), 1); @@ -277,14 +277,14 @@ void CSmplMailClient::validateParameter( // check the flags, the allowed range is 0 - (2^n - 1) if (aFlag < 0 || aFlag > 3) throw IllegalArgumentException( - rtl::OUString::createFromAscii("Invalid flag value"), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Invalid flag value")), static_cast<XSimpleMailClient*>(this), 2); // check if a recipient is specified of the flags NO_USER_INTERFACE is specified if ((aFlag & NO_USER_INTERFACE) && !xSimpleMailMessage->getRecipient().getLength()) throw IllegalArgumentException( - rtl::OUString::createFromAscii("No recipient specified"), + rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("No recipient specified")), static_cast<XSimpleMailClient*>(this), 1); } diff --git a/shell/source/win32/simplemail/smplmailentry.cxx b/shell/source/win32/simplemail/smplmailentry.cxx index 7ed4380b8116..2c6c571eb92f 100644 --- a/shell/source/win32/simplemail/smplmailentry.cxx +++ b/shell/source/win32/simplemail/smplmailentry.cxx @@ -100,7 +100,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr { Reference< XRegistryKey > pXNewKey( static_cast< XRegistryKey* >( pRegistryKey ) ); pXNewKey->createKey( - OUString::createFromAscii( COMP_REGKEY_NAME ) ); + OUString(RTL_CONSTASCII_USTRINGPARAM( COMP_REGKEY_NAME )) ); } catch( InvalidRegistryException& ) { @@ -124,7 +124,7 @@ void* SAL_CALL component_getFactory( const sal_Char* pImplName, uno_Interface* p if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, COMP_IMPL_NAME ) ) ) { Sequence< OUString > aSNS( 1 ); - aSNS.getArray( )[0] = OUString::createFromAscii( COMP_SERVICE_NAME ); + aSNS.getArray( )[0] = OUString(RTL_CONSTASCII_USTRINGPARAM( COMP_SERVICE_NAME )); Reference< XSingleServiceFactory > xFactory ( createOneInstanceFactory( reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ), diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx index 0839717b4726..9202df97efb8 100644 --- a/shell/source/win32/simplemail/smplmailsuppl.cxx +++ b/shell/source/win32/simplemail/smplmailsuppl.cxx @@ -50,7 +50,7 @@ namespace // private Sequence< OUString > SAL_CALL Component_getSupportedServiceNames() { Sequence< OUString > aRet(1); - aRet[0] = OUString::createFromAscii("com.sun.star.sys.shell.SimpleSystemMail"); + aRet[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sys.shell.SimpleSystemMail")); return aRet; } @@ -85,7 +85,7 @@ Reference<XSimpleMailClient> SAL_CALL CSmplMailSuppl::querySimpleMailClient() OUString SAL_CALL CSmplMailSuppl::getImplementationName() throw(RuntimeException) { - return OUString::createFromAscii(COMP_IMPL_NAME); + return OUString(RTL_CONSTASCII_USTRINGPARAM(COMP_IMPL_NAME)); } sal_Bool SAL_CALL CSmplMailSuppl::supportsService(const OUString& ServiceName) 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() ) { |