diff options
Diffstat (limited to 'sw/source/core/layout/dumpfilter.cxx')
-rw-r--r-- | sw/source/core/layout/dumpfilter.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sw/source/core/layout/dumpfilter.cxx b/sw/source/core/layout/dumpfilter.cxx index c6275c3221b9..6e8f14c4acef 100644 --- a/sw/source/core/layout/dumpfilter.cxx +++ b/sw/source/core/layout/dumpfilter.cxx @@ -10,6 +10,7 @@ #include "dumpfilter.hxx" #include <wrtsh.hxx> +#include <cppuhelper/supportsservice.hxx> #include <docsh.hxx> #include <rootfrm.hxx> #include <unotxdoc.hxx> @@ -166,16 +167,7 @@ namespace sw sal_Bool LayoutDumpFilter::supportsService( const OUString& rServiceName ) throw (uno::RuntimeException) { - uno::Sequence< OUString > seqServiceNames = getSupportedServiceNames(); - const OUString* pArray = seqServiceNames.getConstArray(); - for ( sal_Int32 nCounter=0; nCounter < seqServiceNames.getLength(); nCounter++ ) - { - if ( pArray[nCounter] == rServiceName ) - { - return sal_True ; - } - } - return sal_False ; + return cppu::supportsService(this, rServiceName); } uno::Sequence< OUString > LayoutDumpFilter::getSupportedServiceNames() |