summaryrefslogtreecommitdiff
path: root/io/source/stm/odata.cxx
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 /io/source/stm/odata.cxx
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 'io/source/stm/odata.cxx')
-rw-r--r--io/source/stm/odata.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index c626661cb6ce..d8ac9302e4cb 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -486,8 +486,7 @@ OUString ODataInputStream_getImplementationName()
Sequence<OUString> ODataInputStream_getSupportedServiceNames()
{
- Sequence<OUString> aRet(1);
- aRet.getArray()[0] = "com.sun.star.io.DataInputStream";
+ Sequence<OUString> aRet { "com.sun.star.io.DataInputStream" };
return aRet;
}
@@ -1152,8 +1151,7 @@ OUString OObjectOutputStream_getImplementationName()
Sequence<OUString> OObjectOutputStream_getSupportedServiceNames()
{
- Sequence<OUString> aRet(1);
- aRet.getArray()[0] = "com.sun.star.io.ObjectOutputStream";
+ Sequence<OUString> aRet { "com.sun.star.io.ObjectOutputStream" };
return aRet;
}
@@ -1456,8 +1454,7 @@ OUString OObjectInputStream_getImplementationName()
Sequence<OUString> OObjectInputStream_getSupportedServiceNames()
{
- Sequence<OUString> aRet(1);
- aRet.getArray()[0] = "com.sun.star.io.ObjectInputStream";
+ Sequence<OUString> aRet { "com.sun.star.io.ObjectInputStream" };
return aRet;
}