[Libreoffice-commits] core.git: xmlsecurity/source

Yusuf Keten (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 6 10:08:41 UTC 2020


 xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c9253b9007059496521f24ef8348e80bb120e1e6
Author:     Yusuf Keten <ketenyusuf at gmail.com>
AuthorDate: Wed Jan 1 00:27:27 2020 +0300
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jan 6 11:08:03 2020 +0100

    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 at redhat.com>

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 */


More information about the Libreoffice-commits mailing list