diff options
Diffstat (limited to 'desktop/source/migration/services/jvmfwk.cxx')
-rw-r--r-- | desktop/source/migration/services/jvmfwk.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/desktop/source/migration/services/jvmfwk.cxx b/desktop/source/migration/services/jvmfwk.cxx index db8762276456..9cb9460d88c0 100644 --- a/desktop/source/migration/services/jvmfwk.cxx +++ b/desktop/source/migration/services/jvmfwk.cxx @@ -20,6 +20,7 @@ #include "cppuhelper/implbase4.hxx" #include "cppuhelper/implementationentry.hxx" +#include "cppuhelper/supportsservice.hxx" #include "rtl/ustrbuf.hxx" #include "rtl/ustring.h" #include "rtl/ustring.hxx" @@ -233,18 +234,10 @@ OUString SAL_CALL JavaMigration::getImplementationName() return jvmfwk_getImplementationName(); } -sal_Bool SAL_CALL JavaMigration::supportsService( const OUString & rServiceName ) +sal_Bool JavaMigration::supportsService(OUString const & ServiceName) throw (css::uno::RuntimeException) { - css::uno::Sequence< OUString > const & rSNL = getSupportedServiceNames(); - OUString const * pArray = rSNL.getConstArray(); - for ( sal_Int32 nPos = rSNL.getLength(); nPos--; ) - { - if (rServiceName.equals( pArray[ nPos ] )) - return true; - } - return false; - + return cppu::supportsService(this, ServiceName); } css::uno::Sequence< OUString > SAL_CALL JavaMigration::getSupportedServiceNames() |