diff options
Diffstat (limited to 'sfx2/source/appl/appinit.cxx')
-rw-r--r-- | sfx2/source/appl/appinit.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx index 51f2b23896b1..e0f40c92b559 100644 --- a/sfx2/source/appl/appinit.cxx +++ b/sfx2/source/appl/appinit.cxx @@ -42,6 +42,7 @@ #include <unotools/historyoptions.hxx> #include <unotools/moduleoptions.hxx> #include <cppuhelper/implbase2.hxx> +#include <cppuhelper/supportsservice.hxx> #include <vcl/edit.hxx> @@ -128,17 +129,7 @@ OUString SAL_CALL SfxTerminateListener_Impl::getImplementationName() throw (Runt ::sal_Bool SAL_CALL SfxTerminateListener_Impl::supportsService( const OUString& sServiceName ) throw (RuntimeException) { - Sequence< OUString > lNames = getSupportedServiceNames(); - ::sal_Int32 c = lNames.getLength(); - ::sal_Int32 i = 0; - - for (i=0; i<c; ++i) - { - if (lNames[i].equals(sServiceName)) - return sal_True; - } - - return sal_False; + return cppu::supportsService(this, sServiceName); } Sequence< OUString > SAL_CALL SfxTerminateListener_Impl::getSupportedServiceNames() throw (RuntimeException) |