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 --- io/source/TextInputStream/TextInputStream.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'io/source/TextInputStream') diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx index de67189f844a..d0cbf9fbca88 100644 --- a/io/source/TextInputStream/TextInputStream.cxx +++ b/io/source/TextInputStream/TextInputStream.cxx @@ -443,8 +443,7 @@ OUString TextInputStream_getImplementationName() Sequence< OUString > TextInputStream_getSupportedServiceNames() { - Sequence< OUString > seqNames(1); - seqNames.getArray()[0] = SERVICE_NAME; + Sequence< OUString > seqNames { SERVICE_NAME }; return seqNames; } -- cgit v1.2.3