diff options
Diffstat (limited to 'comphelper/source/container/enumerablemap.cxx')
-rw-r--r-- | comphelper/source/container/enumerablemap.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/comphelper/source/container/enumerablemap.cxx b/comphelper/source/container/enumerablemap.cxx index 1896a6059b59..87c863448c0f 100644 --- a/comphelper/source/container/enumerablemap.cxx +++ b/comphelper/source/container/enumerablemap.cxx @@ -32,6 +32,7 @@ #include <cppuhelper/compbase3.hxx> #include <cppuhelper/implbase1.hxx> +#include <cppuhelper/supportsservice.hxx> #include <rtl/math.hxx> #include <rtl/ustrbuf.hxx> #include <typelib/typedescription.hxx> @@ -693,14 +694,9 @@ namespace comphelper return getImplementationName_static(); } - //-------------------------------------------------------------------- ::sal_Bool SAL_CALL EnumerableMap::supportsService( const OUString& _serviceName ) throw (RuntimeException) { - Sequence< OUString > aServices( getSupportedServiceNames() ); - for ( sal_Int32 i=0; i<aServices.getLength(); ++i ) - if ( _serviceName == aServices[i] ) - return sal_True; - return sal_False; + return cppu::supportsService(this, _serviceName); } //-------------------------------------------------------------------- |