diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwpfilter.cxx')
-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() |