ucb/source/ucp/webdav-neon/webdavcontent.cxx | 3 +-- xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 3 +-- xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx | 6 ++---- 3 files changed, 4 insertions(+), 8 deletions(-)
New commits: commit 4a372929c82e894601ab243a507061e1cfc6a59d Author: Mesut Çifci <mesutcifc...@gmail.com> AuthorDate: Fri Jan 10 17:06:33 2020 +0300 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Jan 13 10:41:01 2020 +0100 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: I7342275928e0231062f378942c567fe993b2a271 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86544 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/ucb/source/ucp/webdav-neon/webdavcontent.cxx b/ucb/source/ucp/webdav-neon/webdavcontent.cxx index 10b5441aa64f..07a65d6bda09 100644 --- a/ucb/source/ucp/webdav-neon/webdavcontent.cxx +++ b/ucb/source/ucp/webdav-neon/webdavcontent.cxx @@ -406,8 +406,7 @@ OUString SAL_CALL Content::getImplementationName() // virtual uno::Sequence< OUString > SAL_CALL Content::getSupportedServiceNames() { - uno::Sequence<OUString> aSNS { WEBDAV_CONTENT_SERVICE_NAME }; - return aSNS; + return { WEBDAV_CONTENT_SERVICE_NAME }; } diff --git a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx index 421adfdf16e3..5b31fe984f50 100644 --- a/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx +++ b/xmlsecurity/source/xmlsec/nss/nssinitializer.cxx @@ -569,8 +569,7 @@ sal_Bool SAL_CALL ONSSInitializer::supportsService( const OUString& rServiceName cssu::Sequence< OUString > SAL_CALL ONSSInitializer::getSupportedServiceNames( ) { - cssu::Sequence<OUString> aRet { NSS_SERVICE_NAME }; - return aRet; + return { NSS_SERVICE_NAME }; } #ifndef XMLSEC_CRYPTO_NSS diff --git a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx index beefb82e0748..22ad88f24fc5 100644 --- a/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx @@ -100,8 +100,7 @@ sal_Bool SAL_CALL SEInitializer_NssImpl::supportsService( const OUString& rServi } uno::Sequence< OUString > SAL_CALL SEInitializer_NssImpl::getSupportedServiceNames( ) { - uno::Sequence<OUString> seqServiceNames{ "com.sun.star.xml.crypto.SEInitializer" }; - return seqServiceNames; + return { "com.sun.star.xml.crypto.SEInitializer" }; } namespace { @@ -128,8 +127,7 @@ OUString NSSInitializer_NssImpl::getImplementationName() uno::Sequence<OUString> SAL_CALL NSSInitializer_NssImpl::getSupportedServiceNames() { - uno::Sequence<OUString> seqServiceNames{ "com.sun.star.xml.crypto.NSSInitializer" }; - return seqServiceNames; + return { "com.sun.star.xml.crypto.NSSInitializer" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits