summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index afbc211160aa..15a34929196d 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -178,9 +178,8 @@ UUIInteractionHelper::handleRequest(
HandleData aHD(rRequest);
Link aLink(&aHD,handlerequest);
Application::PostUserEvent(aLink,this);
- sal_uLong locks = Application::ReleaseSolarMutex();
+ SolarMutexReleaser aReleaser;
aHD.wait();
- Application::AcquireSolarMutex(locks);
return aHD.bHandled;
}
else
@@ -235,9 +234,8 @@ UUIInteractionHelper::getStringFromRequest(
HandleData aHD(rRequest);
Link aLink(&aHD,getstringfromrequest);
Application::PostUserEvent(aLink,this);
- sal_uLong locks = Application::ReleaseSolarMutex();
+ SolarMutexReleaser aReleaser;
aHD.wait();
- Application::AcquireSolarMutex(locks);
return aHD.m_aResult;
}
else