summaryrefslogtreecommitdiff
path: root/shell/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 12:17:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 11:31:23 +0000
commit54d22957bc241fc5867fa1c720cf1266133e4e90 (patch)
treea94c9008ccbe953226a479a875e01119d77d9402 /shell/source
parent8e234c5b7d5bae66c544e581bee5770f3f83dd81 (diff)
use initialiser for Sequence<OUString>
performed using: 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: I4da56c80fa09bfc1e8f868794001e9921431e09f Reviewed-on: https://gerrit.libreoffice.org/19968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'shell/source')
-rw-r--r--shell/source/backends/localebe/localebackend.cxx3
-rw-r--r--shell/source/backends/wininetbe/wininetbackend.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx
index a9014050c5d0..b147b67dc0f7 100644
--- a/shell/source/backends/localebe/localebackend.cxx
+++ b/shell/source/backends/localebe/localebackend.cxx
@@ -314,8 +314,7 @@ OUString SAL_CALL LocaleBackend::getImplementationName()
uno::Sequence<OUString> SAL_CALL LocaleBackend::getBackendServiceNames()
{
- uno::Sequence<OUString> aServiceNameList(1);
- aServiceNameList[0] = "com.sun.star.configuration.backend.LocaleBackend";
+ uno::Sequence<OUString> aServiceNameList { "com.sun.star.configuration.backend.LocaleBackend" };
return aServiceNameList ;
}
diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx
index 23aed71fcf01..e08fc29536af 100644
--- a/shell/source/backends/wininetbe/wininetbackend.cxx
+++ b/shell/source/backends/wininetbe/wininetbackend.cxx
@@ -376,8 +376,7 @@ OUString SAL_CALL WinInetBackend::getImplementationName()
uno::Sequence<OUString> SAL_CALL WinInetBackend::getBackendServiceNames()
{
- uno::Sequence<OUString> aServiceNameList(1);
- aServiceNameList[0] = "com.sun.star.configuration.backend.WinInetBackend";
+ uno::Sequence<OUString> aServiceNameList { "com.sun.star.configuration.backend.WinInetBackend" };
return aServiceNameList ;
}