From 7d3041beb90de4f3495addf139463860049740fb Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 17 Aug 2019 18:52:37 +0200 Subject: tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor in hwpfilter, include/test, io, linguistic, oox, pyuno, reportdesign Change-Id: I5c265c4fde85dd6d7faab8ae82809c4a0e6dd69b Reviewed-on: https://gerrit.libreoffice.org/77646 Tested-by: Jenkins Reviewed-by: Julien Nabet --- linguistic/source/dlistimp.cxx | 3 +-- linguistic/source/gciterator.cxx | 3 +-- linguistic/source/lngopt.cxx | 3 +-- linguistic/source/lngsvcmgr.cxx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'linguistic/source') diff --git a/linguistic/source/dlistimp.cxx b/linguistic/source/dlistimp.cxx index e9b5da8d4e95..062e2ad0b017 100644 --- a/linguistic/source/dlistimp.cxx +++ b/linguistic/source/dlistimp.cxx @@ -694,8 +694,7 @@ uno::Sequence< OUString > SAL_CALL DicList::getSupportedServiceNames( ) uno::Sequence< OUString > DicList::getSupportedServiceNames_Static() throw() { - uno::Sequence< OUString > aSNS { "com.sun.star.linguistic2.DictionaryList" }; - return aSNS; + return { "com.sun.star.linguistic2.DictionaryList" }; } void * DicList_getFactory( const sal_Char * pImplName, diff --git a/linguistic/source/gciterator.cxx b/linguistic/source/gciterator.cxx index 247f430d9c06..0b284d660abc 100644 --- a/linguistic/source/gciterator.cxx +++ b/linguistic/source/gciterator.cxx @@ -1188,8 +1188,7 @@ static OUString GrammarCheckingIterator_getImplementationName() throw() static uno::Sequence< OUString > GrammarCheckingIterator_getSupportedServiceNames() throw() { - uno::Sequence aSNS { "com.sun.star.linguistic2.ProofreadingIterator" }; - return aSNS; + return { "com.sun.star.linguistic2.ProofreadingIterator" }; } /// @throws uno::Exception diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index cf89b437f98c..f97cb6cf5073 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -422,8 +422,7 @@ uno::Sequence< OUString > SAL_CALL LinguProps::getSupportedServiceNames() uno::Sequence< OUString > LinguProps::getSupportedServiceNames_Static() throw() { - uno::Sequence< OUString > aSNS { "com.sun.star.linguistic2.LinguProperties" }; - return aSNS; + return { "com.sun.star.linguistic2.LinguProperties" }; } bool LinguProps::getPropertyBool(const OUString& aPropertyName) diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 2ecb7ba7387d..4b7c65ac2761 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -1916,8 +1916,7 @@ uno::Sequence< OUString > SAL_CALL uno::Sequence< OUString > LngSvcMgr::getSupportedServiceNames_Static() throw() { - uno::Sequence< OUString > aSNS { "com.sun.star.linguistic2.LinguServiceManager" }; - return aSNS; + return { "com.sun.star.linguistic2.LinguServiceManager" }; } /// @throws uno::Exception -- cgit