From 112e9c641bb6e30b704c6c3c574c3f8b2e996d99 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 19 Mar 2014 17:45:43 +0100 Subject: Use SolarMutexGuard directly Change-Id: Ib414409d7f7a3bdfba6dbeeab0d8c1e8e2084ceb --- framework/source/uifactory/addonstoolbarfactory.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'framework/source/uifactory') diff --git a/framework/source/uifactory/addonstoolbarfactory.cxx b/framework/source/uifactory/addonstoolbarfactory.cxx index 6a2668e8ad73..3dac557ac042 100644 --- a/framework/source/uifactory/addonstoolbarfactory.cxx +++ b/framework/source/uifactory/addonstoolbarfactory.cxx @@ -18,8 +18,6 @@ */ #include -#include -#include #include #include @@ -53,8 +51,7 @@ using namespace framework; namespace { -class AddonsToolBarFactory : protected ThreadHelpBase, // Struct for right initalization of mutex member! Must be first of baseclasses. - public ::cppu::WeakImplHelper2< css::lang::XServiceInfo , +class AddonsToolBarFactory : public ::cppu::WeakImplHelper2< css::lang::XServiceInfo , css::ui::XUIElementFactory > { public: @@ -94,8 +91,7 @@ private: AddonsToolBarFactory::AddonsToolBarFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) : - ThreadHelpBase( &Application::GetSolarMutex() ) - , m_xContext( xContext ) + m_xContext( xContext ) , m_xModuleManager( ModuleManager::create( xContext ) ) { } @@ -180,8 +176,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception ) { - // SAFE - Guard aLock( m_aLock ); + SolarMutexGuard g; Sequence< Sequence< PropertyValue > > aConfigData; Reference< XFrame > xFrame; -- cgit