diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-14 19:27:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-14 19:32:30 +0200 |
commit | 2171077c0c3c43a61546ab2c0ae68ba63c5112f7 (patch) | |
tree | 09461b7faec131f25b223b4bcbb2bf5b2a701763 /accessibility/source/extended/accessiblelistbox.cxx | |
parent | 3ed834ae87eca0f6c486666699112a95edb74abb (diff) |
Introduce cppu::supportsService helper, adapt some call-sites
...more to follow (easy hack?)
Change-Id: Icb02626495701a3905c124c7368b98c3258e91b2
Diffstat (limited to 'accessibility/source/extended/accessiblelistbox.cxx')
-rw-r--r-- | accessibility/source/extended/accessiblelistbox.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index e9a719cd6690..e1a410a7de01 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/accessibility/AccessibleEventId.hpp> #include <com/sun/star/accessibility/AccessibleRole.hpp> #include <com/sun/star/accessibility/AccessibleStateType.hpp> +#include <cppuhelper/supportsservice.hxx> #include <vcl/svapp.hxx> #include <toolkit/awt/vclxwindow.hxx> #include <toolkit/helper/convert.hxx> @@ -188,13 +189,7 @@ namespace accessibility // ----------------------------------------------------------------------------- sal_Bool SAL_CALL AccessibleListBox::supportsService( const OUString& _rServiceName ) throw (RuntimeException) { - Sequence< OUString > aSupported( getSupportedServiceNames() ); - const OUString* pSupported = aSupported.getConstArray(); - const OUString* pEnd = pSupported + aSupported.getLength(); - for ( ; pSupported != pEnd && !pSupported->equals(_rServiceName); ++pSupported ) - ; - - return pSupported != pEnd; + return cppu::supportsService(this, _rServiceName); } // ----------------------------------------------------------------------------- // XServiceInfo - static methods |