diff options
Diffstat (limited to 'comphelper/source/property/genericpropertyset.cxx')
-rw-r--r-- | comphelper/source/property/genericpropertyset.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/comphelper/source/property/genericpropertyset.cxx b/comphelper/source/property/genericpropertyset.cxx index 831dc5908e00..fd052bbf9105 100644 --- a/comphelper/source/property/genericpropertyset.cxx +++ b/comphelper/source/property/genericpropertyset.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/lang/XTypeProvider.hpp> #include <cppuhelper/weakagg.hxx> #include <cppuhelper/interfacecontainer.hxx> +#include <cppuhelper/supportsservice.hxx> #include <comphelper/propertysethelper.hxx> #include <osl/mutex.hxx> #include <comphelper/genericpropertyset.hxx> @@ -252,17 +253,9 @@ uno::Sequence< sal_Int8 > SAL_CALL GenericPropertySet::getImplementationId() } // XServiceInfo - sal_Bool SAL_CALL GenericPropertySet::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - 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); } OUString SAL_CALL GenericPropertySet::getImplementationName() throw( RuntimeException ) |