Commit 46ddcff0 authored by ElenaSubbotina's avatar ElenaSubbotina

..

parent a044b262
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
namespace DocFileFormat namespace DocFileFormat
{ {
std::map<unsigned char, std::wstring> PropertiesMapping::brcTypeMap; std::map<unsigned char, std::wstring> PropertiesMapping::brcTypeMap;
ASCOfficeCriticalSection PropertiesMapping::brcTypeMapLock; OfficeCriticalSection PropertiesMapping::brcTypeMapLock;
void PropertiesMapping::init() void PropertiesMapping::init()
{ {
......
...@@ -76,6 +76,6 @@ namespace DocFileFormat ...@@ -76,6 +76,6 @@ namespace DocFileFormat
XMLTools::CStringXmlWriter* m_pXmlWriter; XMLTools::CStringXmlWriter* m_pXmlWriter;
static std::map<unsigned char, std::wstring> brcTypeMap; static std::map<unsigned char, std::wstring> brcTypeMap;
static ASCOfficeCriticalSection brcTypeMapLock; static OfficeCriticalSection brcTypeMapLock;
}; };
} }
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
namespace DocFileFormat namespace DocFileFormat
{ {
std::map<std::wstring, std::wstring> StyleSheetMapping::m_mapStyleId; 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() ) StyleSheetMapping::StyleSheetMapping( ConversionContext* ctx ) : AbstractOpenXmlMapping( new XMLTools::CStringXmlWriter() )
{ {
......
...@@ -55,7 +55,7 @@ namespace DocFileFormat ...@@ -55,7 +55,7 @@ namespace DocFileFormat
/// Generates a style id for custom style names or returns the build-in identifier for build-in styles. /// 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::wstring MakeStyleId( StyleSheetDescription* std );
static std::map<std::wstring, std::wstring> m_mapStyleId; static std::map<std::wstring, std::wstring> m_mapStyleId;
static ASCOfficeCriticalSection m_mapStyleIdLock; static OfficeCriticalSection m_mapStyleIdLock;
virtual ~StyleSheetMapping(); virtual ~StyleSheetMapping();
private: private:
......
...@@ -31,18 +31,18 @@ ...@@ -31,18 +31,18 @@
*/ */
#pragma once #pragma once
#include "../../DesktopEditor/graphics/TemporaryCS.h" #include "../../DesktopEditor/graphics/TemporaryCS.h"
class AVSOfficeCriticalSection class OfficeCriticalSection
{ {
private: private:
NSCriticalSection::CRITICAL_SECTION CriticalSection; NSCriticalSection::CRITICAL_SECTION CriticalSection;
public: public:
AVSOfficeCriticalSection() OfficeCriticalSection()
{ {
CriticalSection.InitializeCriticalSection(); CriticalSection.InitializeCriticalSection();
} }
~AVSOfficeCriticalSection() ~OfficeCriticalSection()
{ {
CriticalSection.DeleteCriticalSection(); CriticalSection.DeleteCriticalSection();
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
class CSLocker class CSLocker
{ {
public: public:
CSLocker(AVSOfficeCriticalSection &critical_section) : cs(critical_section) CSLocker(OfficeCriticalSection &critical_section) : cs(critical_section)
{ {
cs.Enter(); cs.Enter();
} }
...@@ -48,5 +48,5 @@ public: ...@@ -48,5 +48,5 @@ public:
} }
private: private:
AVSOfficeCriticalSection &cs; OfficeCriticalSection &cs;
}; };
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