summaryrefslogtreecommitdiff
path: root/sw/source/core/access/accembedded.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/access/accembedded.cxx')
-rw-r--r--sw/source/core/access/accembedded.cxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/sw/source/core/access/accembedded.cxx b/sw/source/core/access/accembedded.cxx
index 53acc19460d6..331ae57e14c6 100644
--- a/sw/source/core/access/accembedded.cxx
+++ b/sw/source/core/access/accembedded.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: accembedded.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mib $ $Date: 2002-08-15 10:25:08 $
+ * last change: $Author: hr $ $Date: 2003-03-27 15:39:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -65,6 +65,10 @@
#pragma hdrstop
+#ifndef _SV_SVAPP_HXX
+#include <vcl/svapp.hxx>
+#endif
+
#ifndef _DRAFTS_COM_SUN_STAR_ACCESSIBILITY_ACCESSIBLEROLE_HPP_
#include <drafts/com/sun/star/accessibility/AccessibleRole.hpp>
#endif
@@ -132,10 +136,13 @@ Sequence< OUString > SAL_CALL SwAccessibleEmbeddedObject::getSupportedServiceNam
Sequence< sal_Int8 > SAL_CALL SwAccessibleEmbeddedObject::getImplementationId()
throw(RuntimeException)
{
+ vos::OGuard aGuard(Application::GetSolarMutex());
static Sequence< sal_Int8 > aId( 16 );
static sal_Bool bInit = sal_False;
if(!bInit)
- rtl_createUuid( reinterpret_cast< sal_uInt8 * >(aId.getArray() ),
- 0, sal_True );
+ {
+ rtl_createUuid( (sal_uInt8 *)(aId.getArray() ), 0, sal_True );
+ bInit = sal_True;
+ }
return aId;
}