diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 18:52:37 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-08-17 20:10:43 +0200 |
commit | 7d3041beb90de4f3495addf139463860049740fb (patch) | |
tree | 17173e099d5d9ff44f6734ab20b9cfd5145fbb27 /linguistic/source | |
parent | e6196c6c9c85bdf446899a50da81adbfb7037d85 (diff) |
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 <serval2412@yahoo.fr>
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/dlistimp.cxx | 3 | ||||
-rw-r--r-- | linguistic/source/gciterator.cxx | 3 | ||||
-rw-r--r-- | linguistic/source/lngopt.cxx | 3 | ||||
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 3 |
4 files changed, 4 insertions, 8 deletions
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<OUString> 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 |