diff options
Diffstat (limited to 'stoc/source/javaloader/javaloader.cxx')
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index 02c6eb11f8e9..8b80ea7363a5 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -43,6 +43,7 @@ #include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implbase2.hxx> +#include <cppuhelper/supportsservice.hxx> #include <com/sun/star/loader/XImplementationLoader.hpp> #include <com/sun/star/lang/IllegalArgumentException.hpp> @@ -322,14 +323,7 @@ OUString SAL_CALL JavaComponentLoader::getImplementationName() sal_Bool SAL_CALL JavaComponentLoader::supportsService(const OUString & ServiceName) throw(::com::sun::star::uno::RuntimeException) { - sal_Bool bSupport = sal_False; - - Sequence<OUString> aSNL = getSupportedServiceNames(); - const OUString * pArray = aSNL.getArray(); - for(sal_Int32 i = 0; i < aSNL.getLength() && !bSupport; ++ i) - bSupport = pArray[i] == ServiceName; - - return bSupport; + return cppu::supportsService(this, ServiceName); } Sequence<OUString> SAL_CALL JavaComponentLoader::getSupportedServiceNames() |