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 --- extensions/source/config/ldap/ldapuserprofilebe.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'extensions/source/config') diff --git a/extensions/source/config/ldap/ldapuserprofilebe.cxx b/extensions/source/config/ldap/ldapuserprofilebe.cxx index 6985b07e65a2..fd595f347b70 100644 --- a/extensions/source/config/ldap/ldapuserprofilebe.cxx +++ b/extensions/source/config/ldap/ldapuserprofilebe.cxx @@ -30,6 +30,7 @@ #include #include #include +#include #include //============================================================================== @@ -229,21 +230,13 @@ uno::Sequence SAL_CALL LdapUserProfileBe::getLdapUserProfileBeServiceN aServices[0] = OUString("com.sun.star.configuration.backend.LdapUserProfileBe") ; return aServices ; } -//------------------------------------------------------------------------------ sal_Bool SAL_CALL LdapUserProfileBe::supportsService(const OUString& aServiceName) throw (uno::RuntimeException) { - uno::Sequence< OUString > const svc = getLdapUserProfileBeServiceNames(); - - for(sal_Int32 i = 0; i < svc.getLength(); ++i ) - if(svc[i] == aServiceName) - return true; - return false; + return cppu::supportsService(this, aServiceName); } -//------------------------------------------------------------------------------ - uno::Sequence SAL_CALL LdapUserProfileBe::getSupportedServiceNames(void) throw (uno::RuntimeException) -- cgit