diff options
author | Alexandre Vicenzi <vicenzi.alexandre@gmail.com> | 2014-02-05 23:57:38 -0200 |
---|---|---|
committer | Marcos Souza <marcos.souza.org@gmail.com> | 2014-02-06 15:47:54 +0000 |
commit | f139c10fd357c1c07f857a1d277f39d9cbc39d1f (patch) | |
tree | 242d722ae6b27e273e61a17baf79b22ef010eaae /svtools | |
parent | 61e28e86ed30fb37df96c7fd0807b5aaeacf5eea (diff) |
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 <gerrit@libreoffice.org>
Reviewed-by: Marcos Souza <marcos.souza.org@gmail.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/uno/unoimap.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
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( ) |