mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
..
This commit is contained in:
@ -35,7 +35,7 @@
|
||||
namespace DocFileFormat
|
||||
{
|
||||
std::map<unsigned char, std::wstring> PropertiesMapping::brcTypeMap;
|
||||
ASCOfficeCriticalSection PropertiesMapping::brcTypeMapLock;
|
||||
OfficeCriticalSection PropertiesMapping::brcTypeMapLock;
|
||||
|
||||
void PropertiesMapping::init()
|
||||
{
|
||||
|
||||
@ -76,6 +76,6 @@ namespace DocFileFormat
|
||||
XMLTools::CStringXmlWriter* m_pXmlWriter;
|
||||
|
||||
static std::map<unsigned char, std::wstring> brcTypeMap;
|
||||
static ASCOfficeCriticalSection brcTypeMapLock;
|
||||
static OfficeCriticalSection brcTypeMapLock;
|
||||
};
|
||||
}
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
namespace DocFileFormat
|
||||
{
|
||||
std::map<std::wstring, std::wstring> StyleSheetMapping::m_mapStyleId;
|
||||
ASCOfficeCriticalSection StyleSheetMapping::m_mapStyleIdLock;
|
||||
OfficeCriticalSection StyleSheetMapping::m_mapStyleIdLock;
|
||||
|
||||
StyleSheetMapping::StyleSheetMapping( ConversionContext* ctx ) : AbstractOpenXmlMapping( new XMLTools::CStringXmlWriter() )
|
||||
{
|
||||
|
||||
@ -55,7 +55,7 @@ namespace DocFileFormat
|
||||
/// Generates a style id for custom style names or returns the build-in identifier for build-in styles.
|
||||
static std::wstring MakeStyleId( StyleSheetDescription* std );
|
||||
static std::map<std::wstring, std::wstring> m_mapStyleId;
|
||||
static ASCOfficeCriticalSection m_mapStyleIdLock;
|
||||
static OfficeCriticalSection m_mapStyleIdLock;
|
||||
virtual ~StyleSheetMapping();
|
||||
|
||||
private:
|
||||
|
||||
@ -31,18 +31,18 @@
|
||||
*/
|
||||
#pragma once
|
||||
#include "../../DesktopEditor/graphics/TemporaryCS.h"
|
||||
class AVSOfficeCriticalSection
|
||||
class OfficeCriticalSection
|
||||
{
|
||||
private:
|
||||
NSCriticalSection::CRITICAL_SECTION CriticalSection;
|
||||
|
||||
public:
|
||||
AVSOfficeCriticalSection()
|
||||
OfficeCriticalSection()
|
||||
{
|
||||
CriticalSection.InitializeCriticalSection();
|
||||
}
|
||||
|
||||
~AVSOfficeCriticalSection()
|
||||
~OfficeCriticalSection()
|
||||
{
|
||||
CriticalSection.DeleteCriticalSection();
|
||||
}
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
class CSLocker
|
||||
{
|
||||
public:
|
||||
CSLocker(AVSOfficeCriticalSection &critical_section) : cs(critical_section)
|
||||
CSLocker(OfficeCriticalSection &critical_section) : cs(critical_section)
|
||||
{
|
||||
cs.Enter();
|
||||
}
|
||||
@ -48,5 +48,5 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
AVSOfficeCriticalSection &cs;
|
||||
OfficeCriticalSection &cs;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user