From 7235d23267e4591e5cf47762abd3f63421b06904 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Wed, 25 Sep 2013 15:41:29 -0300 Subject: fdo#54938: Adapt supportsService implementations to cppu::supportsService Change-Id: I683c0d30c3286ed5d725d4eefe8b3977b82ee316 Reviewed-on: https://gerrit.libreoffice.org/6035 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- embeddedobj/test/mtexecutor/bitmapcreator.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'embeddedobj/test/mtexecutor/bitmapcreator.cxx') diff --git a/embeddedobj/test/mtexecutor/bitmapcreator.cxx b/embeddedobj/test/mtexecutor/bitmapcreator.cxx index 7f0907835681..3c81ccaa41c7 100644 --- a/embeddedobj/test/mtexecutor/bitmapcreator.cxx +++ b/embeddedobj/test/mtexecutor/bitmapcreator.cxx @@ -19,6 +19,7 @@ #include "bitmapcreator.hxx" +#include #include #include #include @@ -90,17 +91,10 @@ OUString SAL_CALL VCLBitmapCreator::getImplementationName() return impl_staticGetImplementationName(); } -//------------------------------------------------------------------------- sal_Bool SAL_CALL VCLBitmapCreator::supportsService( const OUString& ServiceName ) throw ( uno::RuntimeException ) { - uno::Sequence< OUString > aSeq = impl_staticGetSupportedServiceNames(); - - for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ ) - if ( ServiceName == aSeq[nInd] ) - return sal_True; - - return sal_False; + return cppu::supportsService(this, ServiceName); } //------------------------------------------------------------------------- -- cgit v1.2.3