summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 08:43:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 10:13:08 +0000
commit8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch)
tree7d78f03ce2231de4f727d1135449aeb8cba74e99 /shell
parent3bdd176731c351638f541a37b94094124f3c9f52 (diff)
use initialiser syntax for Sequence<OUString>
replaced using the script: git grep -lP 'Sequence.*OUString.*\(1\)' | xargs perl -0777 -pi -e "s/Sequence< OUString > (\w+)\(1\); .*\[0\] = (\S+);/Sequence< OUString > \1 { \2 };/g" Change-Id: I23688a91562051a8eed11fc2a85599545c285c34 Reviewed-on: https://gerrit.libreoffice.org/19967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/cmdmail/cmdmailsuppl.cxx3
-rw-r--r--shell/source/unix/exec/shellexec.cxx3
-rw-r--r--shell/source/win32/SysShExec.cxx3
-rw-r--r--shell/source/win32/simplemail/smplmailsuppl.cxx3
4 files changed, 4 insertions, 8 deletions
diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx
index be09ff776e38..32a744846332 100644
--- a/shell/source/cmdmail/cmdmailsuppl.cxx
+++ b/shell/source/cmdmail/cmdmailsuppl.cxx
@@ -64,8 +64,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL Component_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SimpleCommandMail";
+ Sequence< OUString > aRet { "com.sun.star.system.SimpleCommandMail" };
return aRet;
}
diff --git a/shell/source/unix/exec/shellexec.cxx b/shell/source/unix/exec/shellexec.cxx
index 99ed3a7a2f45..46cd6d14c41e 100644
--- a/shell/source/unix/exec/shellexec.cxx
+++ b/shell/source/unix/exec/shellexec.cxx
@@ -59,8 +59,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL ShellExec_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SystemShellExecute";
+ Sequence< OUString > aRet { "com.sun.star.system.SystemShellExecute" };
return aRet;
}
}
diff --git a/shell/source/win32/SysShExec.cxx b/shell/source/win32/SysShExec.cxx
index a0aef84e4d2d..441cfc50451b 100644
--- a/shell/source/win32/SysShExec.cxx
+++ b/shell/source/win32/SysShExec.cxx
@@ -67,8 +67,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL SysShExec_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SystemShellExecute";
+ Sequence< OUString > aRet { "com.sun.star.system.SystemShellExecute" };
return aRet;
}
diff --git a/shell/source/win32/simplemail/smplmailsuppl.cxx b/shell/source/win32/simplemail/smplmailsuppl.cxx
index 495b4bf1ff89..6d6e33762a2b 100644
--- a/shell/source/win32/simplemail/smplmailsuppl.cxx
+++ b/shell/source/win32/simplemail/smplmailsuppl.cxx
@@ -38,8 +38,7 @@ namespace // private
{
Sequence< OUString > SAL_CALL Component_getSupportedServiceNames()
{
- Sequence< OUString > aRet(1);
- aRet[0] = "com.sun.star.system.SimpleSystemMail";
+ Sequence< OUString > aRet { "com.sun.star.system.SimpleSystemMail" };
return aRet;
}