From 2b91dc3ae674648da6909b0ab96129a7d7d3ed39 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Wed, 9 Oct 2013 08:34:12 -0300 Subject: fdo#54938: Adapt connectivity module to use cppu::supportsService Change-Id: I885b4c7a60ff51d44138c4f8a56a584c38a9804a Reviewed-on: https://gerrit.libreoffice.org/6172 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- connectivity/source/drivers/kab/KDriver.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'connectivity/source/drivers/kab/KDriver.cxx') diff --git a/connectivity/source/drivers/kab/KDriver.cxx b/connectivity/source/drivers/kab/KDriver.cxx index 0eedfeab45ea..9b1da8574b77 100644 --- a/connectivity/source/drivers/kab/KDriver.cxx +++ b/connectivity/source/drivers/kab/KDriver.cxx @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include "resource/kab_res.hrc" @@ -359,16 +360,10 @@ OUString SAL_CALL KabDriver::getImplementationName( ) throw(RuntimeException) { return getImplementationName_Static(); } -//------------------------------------------------------------------ + sal_Bool SAL_CALL KabDriver::supportsService( const OUString& _rServiceName ) throw(RuntimeException) { - Sequence< OUString > aSupported(getSupportedServiceNames()); - const OUString* pSupported = aSupported.getConstArray(); - const OUString* pEnd = pSupported + aSupported.getLength(); - - while (pSupported != pEnd && !pSupported->equals(_rServiceName)) - ++pSupported; - return pSupported != pEnd; + return cppu::supportsService(this, _rServiceName); } //------------------------------------------------------------------ Sequence< OUString > SAL_CALL KabDriver::getSupportedServiceNames( ) throw(RuntimeException) -- cgit