xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
New commits: commit 7edce6c3a5df7787a4bd25e55301d57f300834b8 Author: Hakan Bakacak <[email protected]> AuthorDate: Mon Jan 27 12:17:24 2020 +0300 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Feb 3 15:34:25 2020 +0100 tdf#54938: Adapt supportsService implementations to cppu::supportsService Change-Id: I4f6defffc7489ae95af3e2758327a26374795969 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87501 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx index 43f294ba5a10..bed9cbd07213 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx @@ -29,6 +29,7 @@ #include <xmlelementwrapper_xmlsecimpl.hxx> #include <xmlsec/xmlstreamio.hxx> #include <xmlsec/errorcallback.hxx> +#include <cppuhelper/supportsservice.hxx> #include <xmlsec-wrapper.h> @@ -286,13 +287,7 @@ OUString SAL_CALL XMLSignature_MSCryptImpl::getImplementationName() { /* XServiceInfo */ sal_Bool SAL_CALL XMLSignature_MSCryptImpl::supportsService( const OUString& serviceName) { - Sequence< OUString > seqServiceNames = getSupportedServiceNames() ; - const OUString* pArray = seqServiceNames.getConstArray() ; - for( sal_Int32 i = 0 ; i < seqServiceNames.getLength() ; i ++ ) { - if( *( pArray + i ) == serviceName ) - return true ; - } - return false ; +return cppu::supportsService(this, serviceName); } /* XServiceInfo */ _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
