summaryrefslogtreecommitdiff
path: root/desktop/source/migration/services/wordbookmigration.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/migration/services/wordbookmigration.cxx')
-rw-r--r--desktop/source/migration/services/wordbookmigration.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/desktop/source/migration/services/wordbookmigration.cxx b/desktop/source/migration/services/wordbookmigration.cxx
index e34c550b7fba..717d6ac257e6 100644
--- a/desktop/source/migration/services/wordbookmigration.cxx
+++ b/desktop/source/migration/services/wordbookmigration.cxx
@@ -18,6 +18,7 @@
*/
#include "wordbookmigration.hxx"
+#include <cppuhelper/supportsservice.hxx>
#include <tools/urlobj.hxx>
#include <unotools/bootstrap.hxx>
#include <unotools/ucbstreamhelper.hxx>
@@ -234,15 +235,10 @@ bool IsUserWordbook( const ::rtl::OUString& rFile )
// -----------------------------------------------------------------------------
- sal_Bool WordbookMigration::supportsService( const ::rtl::OUString& rServiceName ) throw (RuntimeException)
+ sal_Bool WordbookMigration::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);
}
// -----------------------------------------------------------------------------