summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-10-16 19:25:05 -0300
committerStephan Bergmann <sbergman@redhat.com>2013-10-17 14:43:28 +0200
commit3d3293144b0e0d2d28136b1b2c7154d6352463b8 (patch)
tree1ef57838dc7fa88515a69dce12612e6071bc08b9 /configmgr
parent6fe26facd06d4d1e5e37384d25d83209209229fa (diff)
fdo#54938: Adapt svtools and comphelper module ...
to use cppu::supportsService and other pieces. Change-Id: I16893b3d31a8055acd214ff23d01e63d38fe0826 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configmgr')
-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()