Kaydet (Commit) 112e9c64 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Use SolarMutexGuard directly

Change-Id: Ib414409d7f7a3bdfba6dbeeab0d8c1e8e2084ceb
üst be370b4f
...@@ -18,8 +18,6 @@ ...@@ -18,8 +18,6 @@
*/ */
#include <uielement/addonstoolbarwrapper.hxx> #include <uielement/addonstoolbarwrapper.hxx>
#include <threadhelp/guard.hxx>
#include <threadhelp/threadhelpbase.hxx>
#include <com/sun/star/util/XURLTransformer.hpp> #include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/frame/ModuleManager.hpp>
...@@ -53,8 +51,7 @@ using namespace framework; ...@@ -53,8 +51,7 @@ using namespace framework;
namespace { namespace {
class AddonsToolBarFactory : protected ThreadHelpBase, // Struct for right initalization of mutex member! Must be first of baseclasses. class AddonsToolBarFactory : public ::cppu::WeakImplHelper2< css::lang::XServiceInfo ,
public ::cppu::WeakImplHelper2< css::lang::XServiceInfo ,
css::ui::XUIElementFactory > css::ui::XUIElementFactory >
{ {
public: public:
...@@ -94,8 +91,7 @@ private: ...@@ -94,8 +91,7 @@ private:
AddonsToolBarFactory::AddonsToolBarFactory( AddonsToolBarFactory::AddonsToolBarFactory(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) : 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 ) ) , m_xModuleManager( ModuleManager::create( xContext ) )
{ {
} }
...@@ -180,8 +176,7 @@ throw ( ::com::sun::star::container::NoSuchElementException, ...@@ -180,8 +176,7 @@ throw ( ::com::sun::star::container::NoSuchElementException,
::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException, std::exception ) ::com::sun::star::uno::RuntimeException, std::exception )
{ {
// SAFE SolarMutexGuard g;
Guard aLock( m_aLock );
Sequence< Sequence< PropertyValue > > aConfigData; Sequence< Sequence< PropertyValue > > aConfigData;
Reference< XFrame > xFrame; Reference< XFrame > xFrame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment