summaryrefslogtreecommitdiff
path: root/stoc/source/namingservice/namingservice.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/namingservice/namingservice.cxx')
-rw-r--r--stoc/source/namingservice/namingservice.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/stoc/source/namingservice/namingservice.cxx b/stoc/source/namingservice/namingservice.cxx
index 139de3c273ae..31639fb60f0a 100644
--- a/stoc/source/namingservice/namingservice.cxx
+++ b/stoc/source/namingservice/namingservice.cxx
@@ -29,6 +29,7 @@
#include <cppuhelper/component.hxx>
#include <cppuhelper/implbase2.hxx>
#include <cppuhelper/implementationentry.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/uno/XNamingService.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -132,14 +133,7 @@ OUString NamingService_Impl::getImplementationName()
sal_Bool NamingService_Impl::supportsService( const OUString & rServiceName )
throw(::com::sun::star::uno::RuntimeException)
{
- const Sequence< OUString > & rSNL = getSupportedServiceNames();
- const OUString * pArray = rSNL.getConstArray();
- for ( sal_Int32 nPos = rSNL.getLength(); nPos--; )
- {
- if (pArray[nPos] == rServiceName)
- return sal_True;
- }
- return sal_False;
+ return cppu::supportsService(this, rServiceName);
}
// XServiceInfo