From 88999eb03b788b83d27d1d784f0ec7ba792ac954 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 18 Mar 2014 12:58:46 +0100 Subject: Use cppu::BaseMutex instead of plain osl::Mutex as base Change-Id: Id169891e60eb0a19899586fd3c9a9325ef9d1236 --- cppuhelper/source/servicemanager.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cppuhelper/source/servicemanager.hxx') diff --git a/cppuhelper/source/servicemanager.hxx b/cppuhelper/source/servicemanager.hxx index f62fe1dd7de2..d4f9d7b0beca 100644 --- a/cppuhelper/source/servicemanager.hxx +++ b/cppuhelper/source/servicemanager.hxx @@ -29,6 +29,7 @@ #include "com/sun/star/lang/XSingleServiceFactory.hpp" #include "com/sun/star/uno/XComponentContext.hpp" #include "com/sun/star/uno/Reference.hxx" +#include "cppuhelper/basemutex.hxx" #include "cppuhelper/compbase8.hxx" #include "osl/mutex.hxx" #include "registry/registry.hxx" @@ -57,7 +58,8 @@ typedef cppu::WeakComponentImplHelper8< ServiceManagerBase; class ServiceManager: - private osl::Mutex, public ServiceManagerBase, private boost::noncopyable + private cppu::BaseMutex, public ServiceManagerBase, + private boost::noncopyable { public: struct Data: private boost::noncopyable { @@ -174,7 +176,7 @@ public: ImplementationMap singletons; }; - ServiceManager(): ServiceManagerBase(*static_cast< osl::Mutex * >(this)) {} + ServiceManager(): ServiceManagerBase(m_aMutex) {} using ServiceManagerBase::acquire; using ServiceManagerBase::release; -- cgit