diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-02-16 12:20:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-02-16 12:32:24 +0100 |
commit | 15003612ae3a7fc5ca994548d9792349787c68d1 (patch) | |
tree | 90d9c7fd1ff14b5477487c939cf08a9b9e2232d0 /desktop/source/migration/services/basicmigration.cxx | |
parent | 5f5504a0c132fcfafe83927452d8280858eef16b (diff) |
Clean up some supportsService implementations
Change-Id: Ib74400765a6e0ef203e751afa5433a01c8564fee
Diffstat (limited to 'desktop/source/migration/services/basicmigration.cxx')
-rw-r--r-- | desktop/source/migration/services/basicmigration.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/desktop/source/migration/services/basicmigration.cxx b/desktop/source/migration/services/basicmigration.cxx index f153b5fd941a..99bbe7687da0 100644 --- a/desktop/source/migration/services/basicmigration.cxx +++ b/desktop/source/migration/services/basicmigration.cxx @@ -18,6 +18,7 @@ */ #include "basicmigration.hxx" +#include <cppuhelper/supportsservice.hxx> #include <tools/urlobj.hxx> #include <unotools/bootstrap.hxx> @@ -168,15 +169,10 @@ namespace migration // ----------------------------------------------------------------------------- - sal_Bool BasicMigration::supportsService( const ::rtl::OUString& rServiceName ) throw (RuntimeException) + sal_Bool BasicMigration::supportsService(OUString const & ServiceName) + throw (css::uno::RuntimeException) { - Sequence< ::rtl::OUString > aNames( getSupportedServiceNames() ); - const ::rtl::OUString* pNames = aNames.getConstArray(); - const ::rtl::OUString* pEnd = pNames + aNames.getLength(); - for ( ; pNames != pEnd && !pNames->equals( rServiceName ); ++pNames ) - ; - - return pNames != pEnd; + return cppu::supportsService(this, ServiceName); } // ----------------------------------------------------------------------------- |