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/accessiblelistboxentry.cxx | |
parent | Unit test for ScRangeList. For now it's very basic. May expand later. (diff) | |
download | core-2171077c0c3c43a61546ab2c0ae68ba63c5112f7.tar.gz core-2171077c0c3c43a61546ab2c0ae68ba63c5112f7.zip |
Introduce cppu::supportsService helper, adapt some call-sites
...more to follow (easy hack?)
Change-Id: Icb02626495701a3905c124c7368b98c3258e91b2
Diffstat (limited to 'accessibility/source/extended/accessiblelistboxentry.cxx')
-rw-r--r-- | accessibility/source/extended/accessiblelistboxentry.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 2d5081293a3e..36fc170b63ca 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -42,6 +42,7 @@ #include <toolkit/helper/convert.hxx> #include <unotools/accessiblestatesethelper.hxx> #include <unotools/accessiblerelationsethelper.hxx> +#include <cppuhelper/supportsservice.hxx> #include <cppuhelper/typeprovider.hxx> #include <comphelper/sequence.hxx> #include <comphelper/accessibleeventnotifier.hxx> @@ -268,13 +269,7 @@ namespace accessibility // ----------------------------------------------------------------------------- sal_Bool SAL_CALL AccessibleListBoxEntry::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 |