summaryrefslogtreecommitdiff
path: root/cppuhelper/source/defaultbootstrap.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/defaultbootstrap.cxx')
-rw-r--r--cppuhelper/source/defaultbootstrap.cxx17
1 files changed, 3 insertions, 14 deletions
diff --git a/cppuhelper/source/defaultbootstrap.cxx b/cppuhelper/source/defaultbootstrap.cxx
index ba558c0b5909..ccf744769d4b 100644
--- a/cppuhelper/source/defaultbootstrap.cxx
+++ b/cppuhelper/source/defaultbootstrap.cxx
@@ -62,6 +62,7 @@
#include "cppuhelper/implbase1.hxx"
#include "cppuhelper/implbase3.hxx"
#include "cppuhelper/shlib.hxx"
+#include "cppuhelper/supportsservice.hxx"
#include "osl/file.hxx"
#include "registry/registry.hxx"
#include "rtl/bootstrap.hxx"
@@ -920,13 +921,7 @@ rtl::OUString ServiceManager::getImplementationName()
sal_Bool ServiceManager::supportsService(rtl::OUString const & ServiceName)
throw (css::uno::RuntimeException)
{
- css::uno::Sequence< rtl::OUString > names(getSupportedServiceNames());
- for (sal_Int32 i = 0; i != names.getLength(); ++i) {
- if (ServiceName == names[i]) {
- return true;
- }
- }
- return false;
+ return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence< rtl::OUString > ServiceManager::getSupportedServiceNames()
@@ -1936,13 +1931,7 @@ rtl::OUString FactoryWrapper::getImplementationName()
sal_Bool FactoryWrapper::supportsService(rtl::OUString const & ServiceName)
throw (css::uno::RuntimeException)
{
- css::uno::Sequence< rtl::OUString > names(getSupportedServiceNames());
- for (sal_Int32 i = 0; i != names.getLength(); ++i) {
- if (ServiceName == names[i]) {
- return true;
- }
- }
- return false;
+ return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence< rtl::OUString > FactoryWrapper::getSupportedServiceNames()