Kaydet (Commit) da20c7f4 authored tarafından Noel Grandin's avatar Noel Grandin

remove unnecessary use of OUString constructor in SHELL module

Change-Id: Ibdb750dc8e0f4cd0f186d5801c0a269edd939547
üst cd30747b
...@@ -166,25 +166,25 @@ Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( ) ...@@ -166,25 +166,25 @@ Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( )
Sequence< OUString > aRet( 7 ); Sequence< OUString > aRet( 7 );
if( !m_aBody.isEmpty() ) if( !m_aBody.isEmpty() )
aRet[nItems++] = OUString("body"); aRet[nItems++] = "body";
if( !m_aOriginator.isEmpty() ) if( !m_aOriginator.isEmpty() )
aRet[nItems++] = OUString("from"); aRet[nItems++] = "from";
if( !m_aRecipient.isEmpty() ) if( !m_aRecipient.isEmpty() )
aRet[nItems++] = OUString("to"); aRet[nItems++] = "to";
if( m_CcRecipients.getLength() ) if( m_CcRecipients.getLength() )
aRet[nItems++] = OUString("cc"); aRet[nItems++] = "cc";
if( m_BccRecipients.getLength() ) if( m_BccRecipients.getLength() )
aRet[nItems++] = OUString("bcc"); aRet[nItems++] = "bcc";
if( !m_aSubject.isEmpty() ) if( !m_aSubject.isEmpty() )
aRet[nItems++] = OUString("subject"); aRet[nItems++] = "subject";
if( m_Attachments.getLength() ) if( m_Attachments.getLength() )
aRet[nItems++] = OUString("attachment"); aRet[nItems++] = "attachment";
aRet.realloc( nItems ); aRet.realloc( nItems );
return aRet; return aRet;
......
...@@ -145,7 +145,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM ...@@ -145,7 +145,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
OUString aConfigRoot = "org.openoffice.Office.Common/ExternalMailer"; OUString aConfigRoot = "org.openoffice.Office.Common/ExternalMailer";
PropertyValue aProperty; PropertyValue aProperty;
aProperty.Name = OUString("nodepath"); aProperty.Name = "nodepath";
aProperty.Value = makeAny( aConfigRoot ); aProperty.Value = makeAny( aConfigRoot );
Sequence< Any > aArgumentList( 1 ); Sequence< Any > aArgumentList( 1 );
......
...@@ -66,7 +66,7 @@ namespace // private ...@@ -66,7 +66,7 @@ namespace // private
Sequence< OUString > SAL_CALL ShellExec_getSupportedServiceNames() Sequence< OUString > SAL_CALL ShellExec_getSupportedServiceNames()
{ {
Sequence< OUString > aRet(1); Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.sys.shell.SystemShellExecute"); aRet[0] = "com.sun.star.sys.shell.SystemShellExecute";
return aRet; return aRet;
} }
} }
......
...@@ -66,7 +66,7 @@ namespace // private ...@@ -66,7 +66,7 @@ namespace // private
Sequence< OUString > SAL_CALL SysShExec_getSupportedServiceNames() Sequence< OUString > SAL_CALL SysShExec_getSupportedServiceNames()
{ {
Sequence< OUString > aRet(1); Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.sys.shell.SystemShellExecute"); aRet[0] = "com.sun.star.sys.shell.SystemShellExecute";
return aRet; return aRet;
} }
......
...@@ -39,7 +39,7 @@ namespace // private ...@@ -39,7 +39,7 @@ namespace // private
Sequence< OUString > SAL_CALL Component_getSupportedServiceNames() Sequence< OUString > SAL_CALL Component_getSupportedServiceNames()
{ {
Sequence< OUString > aRet(1); Sequence< OUString > aRet(1);
aRet[0] = OUString("com.sun.star.sys.shell.SimpleSystemMail"); aRet[0] = "com.sun.star.sys.shell.SimpleSystemMail";
return aRet; return aRet;
} }
......
...@@ -110,12 +110,12 @@ int SAL_CALL main(int , char*, char* ) ...@@ -110,12 +110,12 @@ int SAL_CALL main(int , char*, char* )
xSmplMailMsg->setOriginator( OUString("tino.rachui@germany.sun.com") ); xSmplMailMsg->setOriginator( OUString("tino.rachui@germany.sun.com") );
Sequence< OUString > ccRecips( 1 ); Sequence< OUString > ccRecips( 1 );
ccRecips[0] = OUString("tino.rachui@germany.sun.com"); ccRecips[0] = "tino.rachui@germany.sun.com";
xSmplMailMsg->setCcRecipient( ccRecips ); xSmplMailMsg->setCcRecipient( ccRecips );
Sequence< OUString > bccRecips( 1 ); Sequence< OUString > bccRecips( 1 );
bccRecips[0] = OUString("tino.rachui@germany.sun.com"); bccRecips[0] = "tino.rachui@germany.sun.com";
xSmplMailMsg->setBccRecipient( bccRecips ); xSmplMailMsg->setBccRecipient( bccRecips );
...@@ -129,7 +129,7 @@ int SAL_CALL main(int , char*, char* ) ...@@ -129,7 +129,7 @@ int SAL_CALL main(int , char*, char* )
osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL ); osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL );
attachements[0] = aFileURL; attachements[0] = aFileURL;
aFile = OUString("D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testsyssh.exe"); aFile = "D:\\Projects\\gsl\\shell\\wntmsci7\\bin\\testsyssh.exe";
osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL ); osl::FileBase::getFileURLFromSystemPath( aFile, aFileURL );
attachements[1] = aFile; attachements[1] = aFile;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment