summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-31 17:51:16 +0200
committerNoel Grandin <noel@peralex.com>2013-11-08 14:50:59 +0200
commitda20c7f4396b127072074f4d7999ed29deee02f0 (patch)
tree4d7b90d7731fc1f37ff8fa3b21d59cecc216236b /shell
parentcd30747b74683dc5766073a4a9b3a4c0e5db3723 (diff)
remove unnecessary use of OUString constructor in SHELL module
Change-Id: Ibdb750dc8e0f4cd0f186d5801c0a269edd939547
Diffstat (limited to 'shell')
-rw-r--r--shell/source/cmdmail/cmdmailmsg.cxx14
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.cxx2
-rw-r--r--shell/source/unix/exec/shellexec.cxx2
-rw-r--r--shell/source/win32/SysShExec.cxx2
-rw-r--r--shell/source/win32/simplemail/smplmailsuppl.cxx2
-rw-r--r--shell/source/win32/workbench/TestSmplMail.cxx6
6 files changed, 14 insertions, 14 deletions
diff --git a/shell/source/cmdmail/cmdmailmsg.cxx b/shell/source/cmdmail/cmdmailmsg.cxx
index 20ca8f7acd94..fa080d92f9a6 100644
--- a/shell/source/cmdmail/cmdmailmsg.cxx
+++ b/shell/source/cmdmail/cmdmailmsg.cxx
@@ -166,25 +166,25 @@ Sequence< OUString > SAL_CALL CmdMailMsg::getElementNames( )
Sequence< OUString > aRet( 7 );
if( !m_aBody.isEmpty() )
- aRet[nItems++] = OUString("body");
+ aRet[nItems++] = "body";
if( !m_aOriginator.isEmpty() )
- aRet[nItems++] = OUString("from");
+ aRet[nItems++] = "from";
if( !m_aRecipient.isEmpty() )
- aRet[nItems++] = OUString("to");
+ aRet[nItems++] = "to";
if( m_CcRecipients.getLength() )
- aRet[nItems++] = OUString("cc");
+ aRet[nItems++] = "cc";
if( m_BccRecipients.getLength() )
- aRet[nItems++] = OUString("bcc");
+ aRet[nItems++] = "bcc";
if( !m_aSubject.isEmpty() )
- aRet[nItems++] = OUString("subject");
+ aRet[nItems++] = "subject";
if( m_Attachments.getLength() )
- aRet[nItems++] = OUString("attachment");
+ aRet[nItems++] = "attachment";
aRet.realloc( nItems );
return aRet;
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index ab670afbde59..5b1b403cd0ec 100644
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -145,7 +145,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM
OUString aConfigRoot = "org.openoffice.Office.Common/ExternalMailer";
PropertyValue aProperty;
- aProperty.Name = OUString("nodepath");
+ aProperty.Name = "nodepath";
aProperty.Value = makeAny( aConfigRoot );
Sequence< Any > aArgumentList( 1 );
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index b3138677e09e..777affc56333 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -66,7 +66,7 @@ namespace // private
Sequence< OUString > SAL_CALL ShellExec_getSupportedServiceNames()
{
Sequence< OUString > aRet(1);
- aRet[0] = OUString("com.sun.star.sys.shell.SystemShellExecute");
+ aRet[0] = "com.sun.star.sys.shell.SystemShellExecute";
return aRet;
}
}
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index 1a39e9ab472b..0d4d7793293e 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -66,7 +66,7 @@ namespace // private
Sequence< OUString > SAL_CALL SysShExec_getSupportedServiceNames()
{
Sequence< OUString > aRet(1);
- aRet[0] = OUString("com.sun.star.sys.shell.SystemShellExecute");
+ aRet[0] = "com.sun.star.sys.shell.SystemShellExecute";
return aRet;
}
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx
index 6f530db8d989..fea39960ccfc 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.cxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.cxx
@@ -39,7 +39,7 @@ namespace // private
Sequence< OUString > SAL_CALL Component_getSupportedServiceNames()
{
Sequence< OUString > aRet(1);
- aRet[0] = OUString("com.sun.star.sys.shell.SimpleSystemMail");
+ aRet[0] = "com.sun.star.sys.shell.SimpleSystemMail";
return aRet;
}
diff --git a/shell/source/win32/workbench/TestSmplMail.cxx b/shell/source/win32/workbench/TestSmplMail.cxx
index f0fbb18e6a9c..99e08359e17a 100644
--- a/shell/source/win32/workbench/TestSmplMail.cxx
+++ b/shell/source/win32/workbench/TestSmplMail.cxx
@@ -110,12 +110,12 @@ int SAL_CALL main(int , char*, char* )
xSmplMailMsg->setOriginator( OUString("tino.rachui@germany.sun.com") );
Sequence< OUString > ccRecips( 1 );
- ccRecips[0] = OUString("tino.rachui@germany.sun.com");
+ ccRecips[0] = "tino.rachui@germany.sun.com";
xSmplMailMsg->setCcRecipient( ccRecips );
Sequence< OUString > bccRecips( 1 );
- bccRecips[0] = OUString("tino.rachui@germany.sun.com");
+ bccRecips[0] = "tino.rachui@germany.sun.com";
xSmplMailMsg->setBccRecipient( bccRecips );
@@ -129,7 +129,7 @@ int SAL_CALL main(int , char*, char* )
osl::FileBase::getFileURLFromSystemPath( aFile, 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 );
attachements[1] = aFile;