summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-23 10:40:01 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-23 12:36:11 +0200
commit9073a347f10aae5e7afb92371a0593c80fa89f97 (patch)
tree0d11f047f805f946a66a883dcb3c80d0e5fcf368
parente2fc3f0fb591ba044ad8862c14afea5f0dc6a069 (diff)
XMLSignature_GpgImpl: Use cppu::supportsService
Change-Id: Ic093462c957aa445aab43f95ac22af3a3df1d709
-rw-r--r--xmlsecurity/source/gpg/xmlsignature_gpgimpl.cxx9
1 files changed, 2 insertions, 7 deletions
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 <sal/config.h>
#include <rtl/uuid.h>
+#include <cppuhelper/supportsservice.hxx>
#include "gpg/xmlsignature_gpgimpl.hxx"
#include <gpgme.h>
@@ -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 */