From 3d3293144b0e0d2d28136b1b2c7154d6352463b8 Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Wed, 16 Oct 2013 19:25:05 -0300 Subject: fdo#54938: Adapt svtools and comphelper module ... to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann --- svl/source/fsstor/fsfactory.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'svl') diff --git a/svl/source/fsstor/fsfactory.cxx b/svl/source/fsstor/fsfactory.cxx index 2396bf0e3b99..c10b445495ff 100644 --- a/svl/source/fsstor/fsfactory.cxx +++ b/svl/source/fsstor/fsfactory.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -168,13 +169,7 @@ OUString SAL_CALL FSStorageFactory::getImplementationName() sal_Bool SAL_CALL FSStorageFactory::supportsService( const OUString& ServiceName ) throw ( uno::RuntimeException ) { - uno::Sequence< OUString > aSeq = impl_staticGetSupportedServiceNames(); - - for ( sal_Int32 nInd = 0; nInd < aSeq.getLength(); nInd++ ) - if ( ServiceName == aSeq[nInd] ) - return sal_True; - - return sal_False; + return cppu::supportsService(this, ServiceName); } uno::Sequence< OUString > SAL_CALL FSStorageFactory::getSupportedServiceNames() -- cgit