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 --- linguistic/workben/sspellimp.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'linguistic/workben') diff --git a/linguistic/workben/sspellimp.cxx b/linguistic/workben/sspellimp.cxx index 775c2fab20de..e4e7dd945c93 100644 --- a/linguistic/workben/sspellimp.cxx +++ b/linguistic/workben/sspellimp.cxx @@ -23,6 +23,7 @@ #include #include #include // helper for factories +#include #include #include @@ -415,17 +416,9 @@ OUString SAL_CALL SpellChecker::getImplementationName() sal_Bool SAL_CALL SpellChecker::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); - - 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); } - Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames() throw(RuntimeException) { -- cgit