diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2014-01-14 12:27:09 -0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-01-16 10:25:53 +0100 |
commit | a2218b0d8b39e5018342b9085a3ec98941631952 (patch) | |
tree | 5aa97c50be7479c6d301fdd5718424debbff5a38 /svx/source/unodraw/unoctabl.cxx | |
parent | f32f8285966a0455a7c0db71e196e5ea92390329 (diff) |
fdo#54938: Convert svx and svl to cppu::supportsService...
...final season
Change-Id: Ie51ac231def4a8a6e2681b81de7580798c95eed2
Diffstat (limited to 'svx/source/unodraw/unoctabl.cxx')
-rw-r--r-- | svx/source/unodraw/unoctabl.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/svx/source/unodraw/unoctabl.cxx b/svx/source/unodraw/unoctabl.cxx index c1afe3db6dcf..019654c5fd91 100644 --- a/svx/source/unodraw/unoctabl.cxx +++ b/svx/source/unodraw/unoctabl.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/uno/XComponentContext.hpp> #include <cppuhelper/implbase2.hxx> +#include <cppuhelper/supportsservice.hxx> #include <svx/xtable.hxx> using namespace ::com::sun::star; @@ -72,14 +73,7 @@ SvxUnoColorTable::~SvxUnoColorTable() throw() sal_Bool SAL_CALL SvxUnoColorTable::supportsService( const OUString& ServiceName ) throw(uno::RuntimeException) { - uno::Sequence< OUString > aSNL( getSupportedServiceNames() ); - const OUString * pArray = aSNL.getConstArray(); - - for( sal_Int32 i = 0; i < aSNL.getLength(); i++ ) - if( pArray[i] == ServiceName ) - return sal_True; - - return sal_False; + return cppu::supportsService( this, ServiceName ); } OUString SAL_CALL SvxUnoColorTable::getImplementationName() throw( uno::RuntimeException ) |