diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-10-21 19:04:05 -0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-22 10:28:10 +0000 |
commit | ee5661ecd3bbeae38b04cd3f582a320a231d11bd (patch) | |
tree | 381d9afa0c831145551ade40b6d68f22919baaf6 /lotuswordpro/source | |
parent | c82a36f9c7d89fa434d3dff896c290964326f5bf (diff) |
fdo#54938: Adapt supportsService implementations..
to cppu::supportsService
Change-Id: I0b03d3910f094f2183bf9859db9d5bcaf35d1f14
Reviewed-on: https://gerrit.libreoffice.org/6370
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpfilter.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpfilter.cxx b/lotuswordpro/source/filter/lwpfilter.cxx index f1b082a7f2c2..a627faaa78b3 100644 --- a/lotuswordpro/source/filter/lwpfilter.cxx +++ b/lotuswordpro/source/filter/lwpfilter.cxx @@ -78,6 +78,8 @@ #include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/text/XText.hpp> +#include <cppuhelper/supportsservice.hxx> + #include <tools/stream.hxx> #include <sfx2/docfile.hxx> @@ -186,15 +188,7 @@ OUString LWPFilterImportFilter::getImplementationName() throw() sal_Bool LWPFilterImportFilter::supportsService( const OUString& ServiceName ) throw() { - 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> LWPFilterImportFilter::getSupportedServiceNames( void ) throw() |