From 2674cf29a87c8f56ccf9f491c496e36ce4e8e367 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 17 Aug 2019 16:08:25 +0200 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in forms and fpicker Change-Id: Ifa931bed6de434a2ee183c78e8e1be852ca06a56 Reviewed-on: https://gerrit.libreoffice.org/77637 Tested-by: Jenkins Reviewed-by: Julien Nabet --- forms/source/richtext/richtextmodel.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'forms/source/richtext') diff --git a/forms/source/richtext/richtextmodel.cxx b/forms/source/richtext/richtextmodel.cxx index 3d1e7a75e834..9ec22b913924 100644 --- a/forms/source/richtext/richtextmodel.cxx +++ b/forms/source/richtext/richtextmodel.cxx @@ -233,15 +233,15 @@ namespace frm Sequence< OUString > SAL_CALL ORichTextModel::getSupportedServiceNames() { - Sequence< OUString > aOwnNames( 8 ); - aOwnNames[ 0 ] = FRM_SUN_COMPONENT_RICHTEXTCONTROL; - aOwnNames[ 1 ] = "com.sun.star.text.TextRange"; - aOwnNames[ 2 ] = "com.sun.star.style.CharacterProperties"; - aOwnNames[ 3 ] = "com.sun.star.style.ParagraphProperties"; - aOwnNames[ 4 ] = "com.sun.star.style.CharacterPropertiesAsian"; - aOwnNames[ 5 ] = "com.sun.star.style.CharacterPropertiesComplex"; - aOwnNames[ 6 ] = "com.sun.star.style.ParagraphPropertiesAsian"; - aOwnNames[ 7 ] = "com.sun.star.style.ParagraphPropertiesComplex"; + Sequence< OUString > aOwnNames { + FRM_SUN_COMPONENT_RICHTEXTCONTROL, + "com.sun.star.text.TextRange", + "com.sun.star.style.CharacterProperties", + "com.sun.star.style.ParagraphProperties", + "com.sun.star.style.CharacterPropertiesAsian", + "com.sun.star.style.CharacterPropertiesComplex", + "com.sun.star.style.ParagraphPropertiesAsian", + "com.sun.star.style.ParagraphPropertiesComplex" }; return ::comphelper::combineSequences( getAggregateServiceNames(), -- cgit