summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-11-15 08:43:35 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-11-15 10:13:08 +0000
commit8e234c5b7d5bae66c544e581bee5770f3f83dd81 (patch)
tree7d78f03ce2231de4f727d1135449aeb8cba74e99 /testtools
parent3bdd176731c351638f541a37b94094124f3c9f52 (diff)
use initialiser syntax for Sequence<OUString>
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/constructors.cxx6
-rw-r--r--testtools/source/bridgetest/cppobj.cxx3
2 files changed, 3 insertions, 6 deletions
diff --git a/testtools/source/bridgetest/constructors.cxx b/testtools/source/bridgetest/constructors.cxx
index 16c1a4237cbc..3c14cd77b0e5 100644
--- a/testtools/source/bridgetest/constructors.cxx
+++ b/testtools/source/bridgetest/constructors.cxx
@@ -446,8 +446,7 @@ OUString SAL_CALL getImplementationName() {
}
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() {
- css::uno::Sequence< OUString > s(1);
- s[0] = "test.testtools.bridgetest.Constructors";
+ css::uno::Sequence< OUString > s { "test.testtools.bridgetest.Constructors" };
return s;
}
@@ -464,8 +463,7 @@ OUString SAL_CALL getImplementationName2() {
}
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames2() {
- css::uno::Sequence< OUString > s(1);
- s[0] = "test.testtools.bridgetest.Constructors2";
+ css::uno::Sequence< OUString > s { "test.testtools.bridgetest.Constructors2" };
return s;
}
diff --git a/testtools/source/bridgetest/cppobj.cxx b/testtools/source/bridgetest/cppobj.cxx
index 280653bb2cd4..fca1fe46e77f 100644
--- a/testtools/source/bridgetest/cppobj.cxx
+++ b/testtools/source/bridgetest/cppobj.cxx
@@ -937,8 +937,7 @@ void Test_Impl::testConstructorsService(
Sequence< float > arg22(1); arg22[0] = 0.123f;
Sequence< double > arg23(1); arg23[0] = 0.456;
Sequence< sal_Unicode > arg24(1); arg24[0] = 'X';
- Sequence< OUString > arg25(1);
- arg25[0] = "test";
+ Sequence< OUString > arg25 { "test" };
Sequence< Type > arg26(1); arg26[0] = UnoType< Any >::get();
Sequence< Any > arg27(1); arg27[0] <<= true;
Sequence< Sequence< sal_Bool > > arg28(1);