summaryrefslogtreecommitdiff
path: root/configmgr/source/access.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr/source/access.cxx')
-rw-r--r--configmgr/source/access.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index a181d6216583..7ee8a033f32d 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -73,6 +73,7 @@
#include "cppu/unotype.hxx"
#include "cppuhelper/queryinterface.hxx"
#include "cppuhelper/weak.hxx"
+#include <cppuhelper/supportsservice.hxx>
#include "osl/interlck.h"
#include "osl/mutex.hxx"
#include "rtl/ref.hxx"
@@ -224,13 +225,7 @@ sal_Bool Access::supportsService(OUString const & ServiceName)
assert(thisIs(IS_ANY));
osl::MutexGuard g(*lock_);
checkLocalizedPropertyAccess();
- css::uno::Sequence< OUString > names(getSupportedServiceNames());
- for (sal_Int32 i = 0; i < names.getLength(); ++i) {
- if (names[i] == ServiceName) {
- return true;
- }
- }
- return false;
+ return cppu::supportsService(this, ServiceName);
}
css::uno::Sequence< OUString > Access::getSupportedServiceNames()