From 2171077c0c3c43a61546ab2c0ae68ba63c5112f7 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 14 Sep 2012 19:27:00 +0200 Subject: Introduce cppu::supportsService helper, adapt some call-sites ...more to follow (easy hack?) Change-Id: Icb02626495701a3905c124c7368b98c3258e91b2 --- UnoControls/source/base/basecontrol.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'UnoControls') diff --git a/UnoControls/source/base/basecontrol.cxx b/UnoControls/source/base/basecontrol.cxx index f8e63f27457e..068317b9075b 100644 --- a/UnoControls/source/base/basecontrol.cxx +++ b/UnoControls/source/base/basecontrol.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include //____________________________________________________________________________________________________________ @@ -246,16 +247,7 @@ OUString SAL_CALL BaseControl::getImplementationName() throw( RuntimeException ) sal_Bool SAL_CALL BaseControl::supportsService( const OUString& sServiceName ) throw( RuntimeException ) { - Sequence< OUString > seqServiceNames = getSupportedServiceNames(); - const OUString* pArray = seqServiceNames.getConstArray(); - for ( sal_Int32 nCounter=0; nCounter