summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/officerestartmanager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/officerestartmanager.cxx')
-rw-r--r--comphelper/source/misc/officerestartmanager.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/comphelper/source/misc/officerestartmanager.cxx b/comphelper/source/misc/officerestartmanager.cxx
index 8bde58a3b321..e3a03989b096 100644
--- a/comphelper/source/misc/officerestartmanager.cxx
+++ b/comphelper/source/misc/officerestartmanager.cxx
@@ -24,6 +24,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <comphelper_module.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include "officerestartmanager.hxx"
using namespace ::com::sun::star;
@@ -168,20 +169,11 @@ OUString SAL_CALL OOfficeRestartManager::getImplementationName() throw (uno::Run
return getImplementationName_static();
}
-// ----------------------------------------------------------
::sal_Bool SAL_CALL OOfficeRestartManager::supportsService( const OUString& aServiceName ) throw (uno::RuntimeException)
{
- const uno::Sequence< OUString > & aSupportedNames = getSupportedServiceNames_static();
- for ( sal_Int32 nInd = 0; nInd < aSupportedNames.getLength(); nInd++ )
- {
- if ( aSupportedNames[ nInd ].equals( aServiceName ) )
- return sal_True;
- }
-
- return sal_False;
+ return cppu::supportsService(this, aServiceName);
}
-// ----------------------------------------------------------
uno::Sequence< OUString > SAL_CALL OOfficeRestartManager::getSupportedServiceNames() throw (uno::RuntimeException)
{
return getSupportedServiceNames_static();