From 4d6560f5066d143552cba861aaadc2f49b4357d4 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Tue, 4 Mar 2014 08:41:53 -0300 Subject: fdo#54938: Convert some places to use cppu::supportsService The last cases are non obvious, so it's pratically done Change-Id: Icae1da8e238f516eaed0f7fbdf96fff778eac547 Reviewed-on: https://gerrit.libreoffice.org/8445 Reviewed-by: Marcos Paulo de Souza Tested-by: Marcos Paulo de Souza --- include/ucbhelper/macros.hxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'include/ucbhelper') diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx index 3c6b395f4ef8..e8b8cee3a8f8 100644 --- a/include/ucbhelper/macros.hxx +++ b/include/ucbhelper/macros.hxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -625,16 +626,7 @@ sal_Bool SAL_CALL \ Class::supportsService( const OUString& ServiceName ) \ throw( com::sun::star::uno::RuntimeException, std::exception ) \ { \ - com::sun::star::uno::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 ); \ } \ \ com::sun::star::uno::Sequence< OUString > SAL_CALL \ -- cgit