From c7a9a1dbe2b30afb564953ce1e856b95e3ec9436 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Tue, 8 Jun 2021 13:35:11 +0200 Subject: 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 --- forms/source/component/ListBox.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'forms') 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 aSeq(1); - aSeq.getArray()[0] = m_nNULLPos; + Sequence aSeq { m_nNULLPos }; aValue <<= aSeq; } else @@ -1707,14 +1706,15 @@ namespace frm Sequence< Type > OListBoxModel::getSupportedBindingTypes() { - Sequence< Type > aTypes(6); - aTypes[0] = cppu::UnoType>::get(); - aTypes[1] = cppu::UnoType::get(); - aTypes[2] = cppu::UnoType>::get(); - aTypes[3] = cppu::UnoType::get(); - aTypes[4] = cppu::UnoType>::get(); - aTypes[5] = cppu::UnoType::get(); - return aTypes; + return + { + cppu::UnoType>::get(), + cppu::UnoType::get(), + cppu::UnoType>::get(), + cppu::UnoType::get(), + cppu::UnoType>::get(), + cppu::UnoType::get() + }; } -- cgit