summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-09 23:17:41 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-10 08:30:12 +0200
commit159030991c70fc3c4018ef28abf1814902a0aebb (patch)
tree02f3b436f205a71e32b3fbaa9c4ab21d2ab5f830 /stoc
parent36db408b9027da01464927e5853950435596ae05 (diff)
Simplify Sequences initializations (sot/stock/svl/svtools/svx)
Change-Id: Iec21851d69f4a8d5f557e9ed2d30e5f680cd62c2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116943 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/test/testregistry.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/stoc/test/testregistry.cxx b/stoc/test/testregistry.cxx
index d81328ac6f37..ef0d0a91d551 100644
--- a/stoc/test/testregistry.cxx
+++ b/stoc/test/testregistry.cxx
@@ -513,12 +513,7 @@ void test_DefaultRegistry(
OSL_ENSURE( seqValue.getArray()[2] == "come",
"test_DefaultRegistry error 13" );
- Sequence<sal_Int32> seqLong(3);
- seqLong.getArray()[0] = 1234;
- seqLong.getArray()[1] = 4567;
- seqLong.getArray()[2] = 7890;
-
- xKey->setLongListValue(seqLong);
+ xKey->setLongListValue({ 1234, 4567, 7890 });
Sequence<sal_Int32> seqLongValue = xKey->getLongListValue();