From f139c10fd357c1c07f857a1d277f39d9cbc39d1f Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Wed, 5 Feb 2014 23:57:38 -0200 Subject: fdo#54938 Convert oox, sc, vcl, svtools... to cppu::supportsService Change-Id: I6268bc57417d53b9810c81071fbcd604e2a19507 Reviewed-on: https://gerrit.libreoffice.org/7886 Tested-by: LibreOffice gerrit bot Reviewed-by: Marcos Souza --- svtools/source/uno/unoimap.cxx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'svtools') diff --git a/svtools/source/uno/unoimap.cxx b/svtools/source/uno/unoimap.cxx index dec735e64fef..ee1961955cde 100644 --- a/svtools/source/uno/unoimap.cxx +++ b/svtools/source/uno/unoimap.cxx @@ -707,15 +707,7 @@ OUString SAL_CALL SvUnoImageMap::getImplementationName( ) sal_Bool SAL_CALL SvUnoImageMap::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - const Sequence< OUString > aSNL( getSupportedServiceNames() ); - const OUString * pArray = aSNL.getConstArray(); - - const sal_Int32 nCount = aSNL.getLength(); - for( sal_Int32 i = 0; i < nCount; i++ ) - if( pArray[i] == ServiceName ) - return sal_True; - - return sal_False; + return cppu::supportsService(this, ServiceName); } Sequence< OUString > SAL_CALL SvUnoImageMap::getSupportedServiceNames( ) -- cgit