summaryrefslogtreecommitdiff
path: root/framework/source/recording/dispatchrecordersupplier.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-18 16:49:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-18 17:37:55 +0100
commit8a2e5420fe584aa4f2785acc72cd8403beb88073 (patch)
tree3605db7e4a5f38a2b106a06816d6b4201afe39a6 /framework/source/recording/dispatchrecordersupplier.cxx
parent98861476f23c54adb1514f9ebf62b28a34002e99 (diff)
Use SolarMutexGuard directly
Change-Id: I0ff561aecfd16f59be90f054d076d771179c77cd
Diffstat (limited to 'framework/source/recording/dispatchrecordersupplier.cxx')
-rw-r--r--framework/source/recording/dispatchrecordersupplier.cxx21
1 files changed, 5 insertions, 16 deletions
diff --git a/framework/source/recording/dispatchrecordersupplier.cxx b/framework/source/recording/dispatchrecordersupplier.cxx
index 6fbcad461624..41e9c2664456 100644
--- a/framework/source/recording/dispatchrecordersupplier.cxx
+++ b/framework/source/recording/dispatchrecordersupplier.cxx
@@ -18,7 +18,6 @@
*/
#include <recording/dispatchrecordersupplier.hxx>
-#include <threadhelp/guard.hxx>
#include <services.h>
#include <com/sun/star/frame/XRecordableDispatch.hpp>
@@ -55,11 +54,7 @@ DEFINE_INIT_SERVICE(
it's not necessary to do anything here.
*/
DispatchRecorderSupplier::DispatchRecorderSupplier( const css::uno::Reference< css::lang::XMultiServiceFactory >& )
- // init baseclasses first!
- // Attention: Don't change order of initialization!
- : ThreadHelpBase ( &Application::GetSolarMutex() )
- // init member
- , m_xDispatchRecorder( NULL )
+ : m_xDispatchRecorder( NULL )
{
}
@@ -95,10 +90,8 @@ DispatchRecorderSupplier::~DispatchRecorderSupplier()
*/
void SAL_CALL DispatchRecorderSupplier::setDispatchRecorder( const css::uno::Reference< css::frame::XDispatchRecorder >& xRecorder ) throw (css::uno::RuntimeException, std::exception)
{
- // SAFE =>
- Guard aWriteLock(m_aLock);
+ SolarMutexGuard g;
m_xDispatchRecorder=xRecorder;
- // => SAFE
}
/**
@@ -117,10 +110,8 @@ void SAL_CALL DispatchRecorderSupplier::setDispatchRecorder( const css::uno::Ref
*/
css::uno::Reference< css::frame::XDispatchRecorder > SAL_CALL DispatchRecorderSupplier::getDispatchRecorder() throw (css::uno::RuntimeException, std::exception)
{
- // SAFE =>
- Guard aReadLock(m_aLock);
+ SolarMutexGuard g;
return m_xDispatchRecorder;
- // => SAFE
}
@@ -141,11 +132,9 @@ void SAL_CALL DispatchRecorderSupplier::dispatchAndRecord( const css::util::URL&
const css::uno::Sequence< css::beans::PropertyValue >& lArguments ,
const css::uno::Reference< css::frame::XDispatch >& xDispatcher ) throw (css::uno::RuntimeException, std::exception)
{
- // SAFE =>
- Guard aReadLock(m_aLock);
+ SolarMutexClearableGuard aReadLock;
css::uno::Reference< css::frame::XDispatchRecorder > xRecorder = m_xDispatchRecorder;
- aReadLock.unlock();
- // => SAFE
+ aReadLock.clear();
// clear unspecific situations
if (!xDispatcher.is())