summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-20 09:11:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-20 09:48:22 +0100
commit6771778d2e5423c7b2d3d6f81669b5d0d0925c63 (patch)
treebcbfcc681c69db32c1e345d598edcfa580bf6c75 /framework/source
parent67f378565044355d50aab69b05799adb7c3027bc (diff)
Use SolarMutexGuard directly
Change-Id: If09abe4dd6191efa5f92bf3af7cc6e119f401ab8
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/tabwin/tabwinfactory.cxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/framework/source/tabwin/tabwinfactory.cxx b/framework/source/tabwin/tabwinfactory.cxx
index 373a48df59e8..41f724672e5c 100644
--- a/framework/source/tabwin/tabwinfactory.cxx
+++ b/framework/source/tabwin/tabwinfactory.cxx
@@ -20,8 +20,6 @@
#include <tabwin/tabwinfactory.hxx>
#include <tabwin/tabwindow.hxx>
-#include <threadhelp/guard.hxx>
-
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/awt/Toolkit.hpp>
@@ -55,8 +53,7 @@ DEFINE_XSERVICEINFO_ONEINSTANCESERVICE_2( TabWinFactory
DEFINE_INIT_SERVICE ( TabWinFactory, {} )
TabWinFactory::TabWinFactory( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ) :
- ThreadHelpBase( &Application::GetSolarMutex() )
- , m_xContext( xContext )
+ m_xContext( xContext )
{
}
@@ -80,10 +77,10 @@ throw ( css::uno::Exception, css::uno::RuntimeException, std::exception )
const OUString aTopWindowArgName( "TopWindow");
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
- Guard aLock( m_aLock );
+ SolarMutexResettableGuard aLock;
css::uno::Reference< css::awt::XToolkit2 > xToolkit = m_xToolkit;
css::uno::Reference< css::uno::XComponentContext > xContext( m_xContext );
- aLock.unlock();
+ aLock.clear();
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
css::uno::Reference< css::uno::XInterface > xReturn;
@@ -103,9 +100,9 @@ throw ( css::uno::Exception, css::uno::RuntimeException, std::exception )
{
xToolkit = css::awt::Toolkit::create( xContext );
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
- aLock.lock();
+ aLock.reset();
m_xToolkit = xToolkit;
- aLock.unlock();
+ aLock.clear();
/* SAFE AREA ----------------------------------------------------------------------------------------------- */
}