[Libreoffice-commits] core.git: xmlsecurity/source
iakarsu (via logerrit)
logerrit at kemper.freedesktop.org
Mon Feb 3 14:40:40 UTC 2020
xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
New commits:
commit fbebfdaa83efa94cbb0b39d6c2e2dc62488ae1ac
Author: iakarsu <iakarsu99 at gmail.com>
AuthorDate: Mon Jan 27 11:50:19 2020 +0300
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Feb 3 15:40:05 2020 +0100
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 at redhat.com>
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 */
More information about the Libreoffice-commits
mailing list