diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 12:17:19 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-15 11:31:23 +0000 |
commit | 54d22957bc241fc5867fa1c720cf1266133e4e90 (patch) | |
tree | a94c9008ccbe953226a479a875e01119d77d9402 /filter | |
parent | 8e234c5b7d5bae66c544e581bee5770f3f83dd81 (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 'filter')
-rw-r--r-- | filter/source/xsltfilter/XSLTFilter.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/xsltfilter/XSLTFilter.cxx b/filter/source/xsltfilter/XSLTFilter.cxx index 6a1f849eaa8a..2029b9f9e138 100644 --- a/filter/source/xsltfilter/XSLTFilter.cxx +++ b/filter/source/xsltfilter/XSLTFilter.cxx @@ -568,8 +568,7 @@ extern "C" { if (rtl_str_compare(pImplName, FILTER_IMPL_NAME) == 0) { - Sequence<OUString> serviceNames(1); - serviceNames.getArray()[0] = FILTER_SERVICE_NAME; + Sequence<OUString> serviceNames { FILTER_SERVICE_NAME }; css::uno::Reference<XSingleServiceFactory> xFactory( @@ -588,8 +587,7 @@ extern "C" } else if (rtl_str_compare(pImplName, TRANSFORMER_IMPL_NAME) == 0) { - Sequence<OUString> serviceNames(1); - serviceNames.getArray()[0] = TRANSFORMER_SERVICE_NAME; + Sequence<OUString> serviceNames { TRANSFORMER_SERVICE_NAME }; css::uno::Reference<XSingleServiceFactory> xFactory( createSingleFactory( |