From 9073a347f10aae5e7afb92371a0593c80fa89f97 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 23 Jun 2017 10:40:01 +0200 Subject: XMLSignature_GpgImpl: Use cppu::supportsService Change-Id: Ic093462c957aa445aab43f95ac22af3a3df1d709 --- xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx index 9972482bdaf1..48d2097dad0f 100644 --- a/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx +++ b/xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx @@ -19,6 +19,7 @@ #include #include +#include #include "gpg/xmlsignature_gpgimpl.hxx" #include @@ -405,13 +406,7 @@ OUString SAL_CALL XMLSignature_GpgImpl::getImplementationName() { /* XServiceInfo */ sal_Bool SAL_CALL XMLSignature_GpgImpl::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 */ -- cgit