From 7edce6c3a5df7787a4bd25e55301d57f300834b8 Mon Sep 17 00:00:00 2001 From: Hakan Bakacak Date: Mon, 27 Jan 2020 12:17:24 +0300 Subject: 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 --- xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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 #include #include +#include #include @@ -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 */ -- cgit