From 704f95e5255ff72bfb548d50d66d4da61dc483ef Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Wed, 23 Oct 2013 14:35:10 -0200 Subject: fdo#54938: More uses of cppu::supportsService Change-Id: I90a7a07a43559b8d7e1d4b886b2624255200d46b Reviewed-on: https://gerrit.libreoffice.org/6406 Tested-by: LibreOffice gerrit bot Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- binaryurp/source/bridgefactory.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'binaryurp') diff --git a/binaryurp/source/bridgefactory.cxx b/binaryurp/source/bridgefactory.cxx index 24105f30ff9d..34182b354c0a 100644 --- a/binaryurp/source/bridgefactory.cxx +++ b/binaryurp/source/bridgefactory.cxx @@ -30,6 +30,7 @@ #include "com/sun/star/uno/XInterface.hpp" #include "cppuhelper/factory.hxx" #include "cppuhelper/implementationentry.hxx" +#include #include "rtl/ref.hxx" #include "sal/types.h" @@ -93,13 +94,7 @@ OUString BridgeFactory::getImplementationName() sal_Bool BridgeFactory::supportsService(OUString const & ServiceName) throw (css::uno::RuntimeException) { - css::uno::Sequence< OUString > s(getSupportedServiceNames()); - for (sal_Int32 i = 0; i != s.getLength(); ++i) { - if (ServiceName == s[i]) { - return true; - } - } - return false; + return cppu::supportsService(this, ServiceName); } css::uno::Sequence< OUString > BridgeFactory::getSupportedServiceNames() -- cgit