From 624ba772858d9bf56fd2ff2de555740bbef5593a Mon Sep 17 00:00:00 2001 From: Tarun Sharma Date: Sun, 24 Jan 2021 23:03:13 +0530 Subject: tdf#88205: Adapt uses of css::uno::Sequence to use initializer_list ctor Change-Id: Ib7f122b20734ad51c6326e369e5e7eee1bf08a21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109861 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx | 3 +-- xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx | 3 +-- xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx | 3 +-- xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx | 3 +-- xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx | 3 +-- xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx | 3 +-- xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx | 3 +-- 7 files changed, 7 insertions(+), 14 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx index c62c96d77328..1540db695b54 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx @@ -169,8 +169,7 @@ sal_Bool SAL_CALL SecurityEnvironment_MSCryptImpl::supportsService( const OUStri } /* XServiceInfo */ uno::Sequence< OUString > SAL_CALL SecurityEnvironment_MSCryptImpl::getSupportedServiceNames() { - uno::Sequence seqServiceNames { "com.sun.star.xml.crypto.SecurityEnvironment" }; - return seqServiceNames ; + return { "com.sun.star.xml.crypto.SecurityEnvironment" }; } /* XUnoTunnel */ diff --git a/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx index 00b6e12f7aac..f194106eea5f 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/seinitializer_mscryptimpl.cxx @@ -161,8 +161,7 @@ sal_Bool SAL_CALL SEInitializer_MSCryptImpl::supportsService( const OUString& rS uno::Sequence< OUString > SAL_CALL SEInitializer_MSCryptImpl::getSupportedServiceNames() { - uno::Sequence aRet { "com.sun.star.xml.crypto.SEInitializer" }; - return aRet; + return { "com.sun.star.xml.crypto.SEInitializer" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx index 2f33df7c911c..7d71d4863894 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx @@ -142,8 +142,7 @@ sal_Bool SAL_CALL XMLSecurityContext_MSCryptImpl::supportsService( const OUStrin /* XServiceInfo */ uno::Sequence< OUString > SAL_CALL XMLSecurityContext_MSCryptImpl::getSupportedServiceNames() { - uno::Sequence seqServiceNames { "com.sun.star.xml.crypto.XMLSecurityContext" }; - return seqServiceNames ; + return { "com.sun.star.xml.crypto.XMLSecurityContext" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx index dcbad0348091..3bc02d161722 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx @@ -291,8 +291,7 @@ return cppu::supportsService(this, serviceName); /* XServiceInfo */ Sequence< OUString > SAL_CALL XMLSignature_MSCryptImpl::getSupportedServiceNames() { - Sequence seqServiceNames { "com.sun.star.xml.crypto.XMLSignature" }; - return seqServiceNames ; + return { "com.sun.star.xml.crypto.XMLSignature" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* diff --git a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx index 2566a40accfb..42d03f2dd81a 100644 --- a/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/xmlsecuritycontext_nssimpl.cxx @@ -136,8 +136,7 @@ sal_Bool SAL_CALL XMLSecurityContext_NssImpl::supportsService( const OUString& s /* XServiceInfo */ uno::Sequence< OUString > SAL_CALL XMLSecurityContext_NssImpl::getSupportedServiceNames() { - uno::Sequence seqServiceNames { "com.sun.star.xml.crypto.XMLSecurityContext" }; - return seqServiceNames ; + return { "com.sun.star.xml.crypto.XMLSecurityContext" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* diff --git a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx index 800724a84051..a9e95866d89f 100644 --- a/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx +++ b/xmlsecurity/source/xmlsec/xmldocumentwrapper_xmlsecimpl.cxx @@ -892,8 +892,7 @@ sal_Bool SAL_CALL XMLDocumentWrapper_XmlSecImpl::supportsService( const OUString uno::Sequence< OUString > SAL_CALL XMLDocumentWrapper_XmlSecImpl::getSupportedServiceNames( ) { - uno::Sequence aRet{ "com.sun.star.xml.wrapper.XMLDocumentWrapper" }; - return aRet; + return { "com.sun.star.xml.wrapper.XMLDocumentWrapper" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* diff --git a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx index 01f8df70230c..d29151b3cfc8 100644 --- a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx +++ b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx @@ -64,8 +64,7 @@ sal_Bool SAL_CALL XMLElementWrapper_XmlSecImpl::supportsService( const OUString& uno::Sequence< OUString > SAL_CALL XMLElementWrapper_XmlSecImpl::getSupportedServiceNames( ) { - uno::Sequence aRet { "com.sun.star.xml.wrapper.XMLElementWrapper" }; - return aRet; + return { "com.sun.star.xml.wrapper.XMLElementWrapper" }; } extern "C" SAL_DLLPUBLIC_EXPORT uno::XInterface* -- cgit