diff options
author | Yusuf Keten <ketenyusuf@gmail.com> | 2020-01-01 00:27:27 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-06 11:08:03 +0100 |
commit | c9253b9007059496521f24ef8348e80bb120e1e6 (patch) | |
tree | eeb345a48cb3c6515d31e24574e00430b29f2d9a /xmlsecurity | |
parent | ed1ece19d4983ea47b296086aaa0ea91fe11935d (diff) |
tdf#54938 Adapt supportsService implementations to cppu::supportsService
Change-Id: I061db162c44a7196c58f4ae6dae2f37c7ac9213a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86057
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index 1ac8d052b5c3..64caec48cce4 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -26,6 +26,7 @@ #include <sal/macros.h> #include <osl/diagnose.h> #include "securityenvironment_nssimpl.hxx" +#include <cppuhelper/supportsservice.hxx> #include <comphelper/servicehelper.hxx> #include <xmlsec-wrapper.h> @@ -143,8 +144,7 @@ OUString SAL_CALL SecurityEnvironment_NssImpl::getImplementationName() { /* XServiceInfo */ sal_Bool SAL_CALL SecurityEnvironment_NssImpl::supportsService( const OUString& serviceName) { - Sequence< OUString > seqServiceNames = getSupportedServiceNames() ; - return comphelper::findValue(seqServiceNames, serviceName) != -1; + return cppu::supportsService(this, serviceName); } /* XServiceInfo */ |