From 8e234c5b7d5bae66c544e581bee5770f3f83dd81 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 15 Nov 2015 08:43:35 +0200 Subject: use initialiser syntax for Sequence 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 Reviewed-by: Noel Grandin --- shell/source/cmdmail/cmdmailsuppl.cxx | 3 +-- shell/source/unix/exec/shellexec.cxx | 3 +-- shell/source/win32/SysShExec.cxx | 3 +-- shell/source/win32/simplemail/smplmailsuppl.cxx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'shell') 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; } -- cgit v1.2.3