diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-09-25 15:41:29 -0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-10-07 17:01:33 +0000 |
commit | 7235d23267e4591e5cf47762abd3f63421b06904 (patch) | |
tree | 6353239b1c586642e22c5df892a7c0560e632fa5 /unoxml/source/events | |
parent | 8e37c7ae282f10724d6322aa028a7dd6b698f071 (diff) |
fdo#54938: Adapt supportsService implementations to cppu::supportsService
Change-Id: I683c0d30c3286ed5d725d4eefe8b3977b82ee316
Reviewed-on: https://gerrit.libreoffice.org/6035
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'unoxml/source/events')
-rw-r--r-- | unoxml/source/events/testlistener.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/unoxml/source/events/testlistener.cxx b/unoxml/source/events/testlistener.cxx index f99d53febf37..9c9dad01a75a 100644 --- a/unoxml/source/events/testlistener.cxx +++ b/unoxml/source/events/testlistener.cxx @@ -19,6 +19,7 @@ #include <stdio.h> #include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <cppuhelper/supportsservice.hxx> #include "testlistener.hxx" @@ -74,12 +75,7 @@ namespace DOM { namespace events sal_Bool SAL_CALL CTestListener::supportsService(const OUString& aServiceName) throw (RuntimeException) { - Sequence< OUString > supported = CTestListener::_getSupportedServiceNames(); - for (sal_Int32 i=0; i<supported.getLength(); i++) - { - if (supported[i] == aServiceName) return sal_True; - } - return sal_False; + return cppu::supportsService(this, aServiceName); } // --- XInitialize |