diff options
author | iakarsu <iakarsu99@gmail.com> | 2020-01-27 11:50:19 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-02-03 15:40:05 +0100 |
commit | fbebfdaa83efa94cbb0b39d6c2e2dc62488ae1ac (patch) | |
tree | a01b5a583d9ed30e6718d3c36da8cd781762247f /xmlsecurity | |
parent | 7edce6c3a5df7787a4bd25e55301d57f300834b8 (diff) |
tdf:#54938Adapt supportsService implementations to cppu::supportsService
Change-Id: I9e2dbdfb8bbf5be4a74b1b581e742b3193b3756b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87496
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx index 4aefafa30a32..9d5b4df3e845 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx @@ -26,6 +26,8 @@ #include <xmlsec-wrapper.h> +#include <cppuhelper/supportsservice.hxx> + using namespace ::com::sun::star; using namespace ::com::sun::star::lang ; using ::com::sun::star::lang::XMultiServiceFactory ; @@ -135,13 +137,7 @@ OUString SAL_CALL XMLSecurityContext_MSCryptImpl::getImplementationName() { /* XServiceInfo */ sal_Bool SAL_CALL XMLSecurityContext_MSCryptImpl::supportsService( const OUString& serviceName) { - uno::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 */ |