Kaydet (Commit) a4faad70 authored tarafından Michael Stahl's avatar Michael Stahl

tdf#76174: basic: lock SolarMutex in BasicScriptListener_Impl

... before calling into BASIC.

Change-Id: I51a59fe5ca9b15ff7ec509c052964523d87a9790
üst 74df327e
......@@ -48,7 +48,7 @@
#include <basic/basicmanagerrepository.hxx>
#include <basic/basmgr.hxx>
#include <vcl/svapp.hxx>
#include <xmlscript/xmldlg_imexp.hxx>
#include <sbunoobj.hxx>
#include <basic/sbstar.hxx>
......@@ -161,12 +161,16 @@ public:
// Methods XAllListener
void BasicScriptListener_Impl::firing( const ScriptEvent& aScriptEvent ) throw ( RuntimeException, std::exception )
{
SolarMutexGuard g;
firing_impl( aScriptEvent, NULL );
}
Any BasicScriptListener_Impl::approveFiring( const ScriptEvent& aScriptEvent )
throw ( InvocationTargetException, RuntimeException, std::exception )
{
SolarMutexGuard g;
Any aRetAny;
firing_impl( aScriptEvent, &aRetAny );
return aRetAny;
......
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