diff options
author | Hakan Bakacak <hakanbakacak98@gmail.com> | 2020-01-27 12:17:24 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 15:34:25 +0100 |
commit | 7edce6c3a5df7787a4bd25e55301d57f300834b8 (patch) | |
tree | 4a2d40f1ce5117553f0b244154b53fcdf0a2fea6 /xmlsecurity | |
parent | 81f73ca9b9a61fcbba1533ac8b5d5be16025667b (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx | 9 |
1 files 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 <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 */ |