From 93d6ce502ea2407f69dbbc0495c5ecb27c70a82a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 18 Mar 2014 12:56:05 +0100 Subject: Use cppu::BaseMutex instead of plain osl::Mutex as base Change-Id: Ie87cc749556d0a9b135b285143d33dc80d49a2ad --- configmgr/source/configurationprovider.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'configmgr/source') diff --git a/configmgr/source/configurationprovider.cxx b/configmgr/source/configurationprovider.cxx index 40d580b5d5ca..fe74a111439c 100644 --- a/configmgr/source/configurationprovider.cxx +++ b/configmgr/source/configurationprovider.cxx @@ -44,6 +44,7 @@ #include "com/sun/star/util/XRefreshListener.hpp" #include "com/sun/star/util/XRefreshable.hpp" #include "cppu/unotype.hxx" +#include "cppuhelper/basemutex.hxx" #include "cppuhelper/compbase5.hxx" #include "cppuhelper/factory.hxx" #include "cppuhelper/implbase2.hxx" @@ -87,13 +88,12 @@ typedef ServiceBase; class Service: - private osl::Mutex, public ServiceBase, private boost::noncopyable + private cppu::BaseMutex, public ServiceBase, private boost::noncopyable { public: Service( css::uno::Reference< css::uno::XComponentContext > const context): - ServiceBase(*static_cast< osl::Mutex * >(this)), context_(context), - default_(true) + ServiceBase(m_aMutex), context_(context), default_(true) { lock_ = lock(); assert(context.is()); @@ -102,8 +102,8 @@ public: Service( css::uno::Reference< css::uno::XComponentContext > const context, OUString const & locale): - ServiceBase(*static_cast< osl::Mutex * >(this)), context_(context), - locale_(locale), default_(false) + ServiceBase(m_aMutex), context_(context), locale_(locale), + default_(false) { lock_ = lock(); assert(context.is()); -- cgit