summaryrefslogtreecommitdiff
path: root/toolkit/source/awt/asynccallback.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/source/awt/asynccallback.cxx')
-rw-r--r--toolkit/source/awt/asynccallback.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/toolkit/source/awt/asynccallback.cxx b/toolkit/source/awt/asynccallback.cxx
index f6945248a081..e912e83bd12e 100644
--- a/toolkit/source/awt/asynccallback.cxx
+++ b/toolkit/source/awt/asynccallback.cxx
@@ -30,7 +30,7 @@
#include "precompiled_toolkit.hxx"
#include "vcl/svapp.hxx"
-#include "vos/mutex.hxx"
+#include "osl/mutex.hxx"
#include "sal/config.h"
#include "cppuhelper/factory.hxx"
#include "cppuhelper/implementationentry.hxx"
@@ -125,7 +125,8 @@ void SAL_CALL AsyncCallback::addCallback(const css::uno::Reference< css::awt::XC
{
if ( Application::IsInMain() )
{
- osl::Guard< vos::IMutex > aSolarGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aSolarGuard;
+
CallbackData* pCallbackData = new CallbackData( xCallback, aData );
Application::PostUserEvent( STATIC_LINK( this, AsyncCallback, Notify_Impl ), pCallbackData );
}