From ee5661ecd3bbeae38b04cd3f582a320a231d11bd Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Mon, 21 Oct 2013 19:04:05 -0200 Subject: fdo#54938: Adapt supportsService implementations.. to cppu::supportsService Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14 Reviewed-on: https://gerrit.libreoffice.org/6370 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- eventattacher/source/eventattacher.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'eventattacher') diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 09275b0dae4d..4830336fa3ea 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -38,6 +38,7 @@ #include #include #include +#include using namespace com::sun::star::uno; using namespace com::sun::star::registry; @@ -314,19 +315,12 @@ OUString SAL_CALL EventAttacherImpl::getImplementationName( ) return OUString( IMPLNAME ); } -//************************************************************************* sal_Bool SAL_CALL EventAttacherImpl::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - Sequence< OUString > aSNL = getSupportedServiceNames(); - const OUString * pArray = aSNL.getArray(); - for( sal_Int32 i = 0; i < aSNL.getLength(); i++ ) - if( pArray[i] == ServiceName ) - return sal_True; - return sal_False; + return cppu::supportsService(this, ServiceName); } -//************************************************************************* Sequence SAL_CALL EventAttacherImpl::getSupportedServiceNames( ) throw(RuntimeException) { -- cgit