summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-06-08 13:35:11 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-06-08 17:08:06 +0200
commitc7a9a1dbe2b30afb564953ce1e856b95e3ec9436 (patch)
tree2ee177cda58e457bc0fbdedcf792cc7d8e1b362b /forms
parentaf8dc07bfdf5d6e7bd2278305cd39ed269e50ed7 (diff)
Simplify Sequences initializations (desktop/e*/filter/forms/formula/fpicker)
includes removing of unused TOKEN_SEP Change-Id: Ic72d9d94bd8d07232699ee4d948f3b203d524491 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116833 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'forms')
-rw-r--r--forms/source/component/ListBox.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 42dc08aee90d..e998e701f57c 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -1271,8 +1271,7 @@ namespace frm
aValue <<= m_aDefaultSelectSeq;
else if (m_nNULLPos != -1) // bound Listbox
{
- Sequence<sal_Int16> aSeq(1);
- aSeq.getArray()[0] = m_nNULLPos;
+ Sequence<sal_Int16> aSeq { m_nNULLPos };
aValue <<= aSeq;
}
else
@@ -1707,14 +1706,15 @@ namespace frm
Sequence< Type > OListBoxModel::getSupportedBindingTypes()
{
- Sequence< Type > aTypes(6);
- aTypes[0] = cppu::UnoType<Sequence< Any >>::get();
- aTypes[1] = cppu::UnoType<Any>::get();
- aTypes[2] = cppu::UnoType<Sequence< sal_Int32 >>::get();
- aTypes[3] = cppu::UnoType<sal_Int32>::get();
- aTypes[4] = cppu::UnoType<Sequence< OUString >>::get();
- aTypes[5] = cppu::UnoType<OUString>::get();
- return aTypes;
+ return
+ {
+ cppu::UnoType<Sequence< Any >>::get(),
+ cppu::UnoType<Any>::get(),
+ cppu::UnoType<Sequence< sal_Int32 >>::get(),
+ cppu::UnoType<sal_Int32>::get(),
+ cppu::UnoType<Sequence< OUString >>::get(),
+ cppu::UnoType<OUString>::get()
+ };
}