diff options
author | Mesut Çifci <mesutcifci97@gmail.com> | 2020-01-10 17:06:33 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-13 10:41:01 +0100 |
commit | 4a372929c82e894601ab243a507061e1cfc6a59d (patch) | |
tree | 35c9641642d677126af89ef90d814607938aa54f /xmlsecurity | |
parent | 467e355c6a947e12bc23b6d93e1a2cc0c778dc71 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/nssinitializer.cxx | 3 | ||||
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
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* |