summaryrefslogtreecommitdiff
path: root/filter/source/config/cache/basecontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/config/cache/basecontainer.cxx')
-rw-r--r--filter/source/config/cache/basecontainer.cxx17
1 files changed, 2 insertions, 15 deletions
diff --git a/filter/source/config/cache/basecontainer.cxx b/filter/source/config/cache/basecontainer.cxx
index fc93f4f39b2a..de888aaf0aab 100644
--- a/filter/source/config/cache/basecontainer.cxx
+++ b/filter/source/config/cache/basecontainer.cxx
@@ -25,10 +25,10 @@
#include <com/sun/star/document/FilterConfigRefresh.hpp>
#include <com/sun/star/uno/Type.h>
#include <comphelper/enumhelper.hxx>
+#include <cppuhelper/supportsservice.hxx>
#include <osl/diagnose.h>
#include <rtl/instance.hxx>
-
#define LOAD_IMPLICIT
namespace filter{
@@ -166,22 +166,9 @@ OUString SAL_CALL BaseContainer::getImplementationName()
sal_Bool SAL_CALL BaseContainer::supportsService(const OUString& sServiceName)
throw (css::uno::RuntimeException)
{
- // SAFE ->
- ::osl::ResettableMutexGuard aLock(m_aLock);
-
- sal_Int32 c = m_lServiceNames.getLength();
- const OUString* pNames = m_lServiceNames.getConstArray();
- for (sal_Int32 i=0; i<c; ++i)
- {
- if (pNames[i].equals(sServiceName))
- return sal_True;
- }
- return sal_False;
- // <- SAFE
+ return cppu::supportsService(this, sServiceName);
}
-
-
css::uno::Sequence< OUString > SAL_CALL BaseContainer::getSupportedServiceNames()
throw (css::uno::RuntimeException)
{