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

Hakan Bakacak (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 3 14:35:06 UTC 2020


 xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 7edce6c3a5df7787a4bd25e55301d57f300834b8
Author:     Hakan Bakacak <hakanbakacak98 at gmail.com>
AuthorDate: Mon Jan 27 12:17:24 2020 +0300
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Feb 3 15:34:25 2020 +0100

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

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


More information about the Libreoffice-commits mailing list