summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
Diffstat (limited to 'core/include')
-rw-r--r--core/include/fpdfdoc/fpdf_doc.h4
-rw-r--r--core/include/fxge/fx_font.h9
2 files changed, 9 insertions, 4 deletions
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h
index d6341acbfe..57d1790377 100644
--- a/core/include/fpdfdoc/fpdf_doc.h
+++ b/core/include/fpdfdoc/fpdf_doc.h
@@ -7,6 +7,8 @@
#ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
#define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
+#include <map>
+
#include "../fpdfapi/fpdf_parser.h"
#include "../fpdfapi/fpdf_render.h"
@@ -181,7 +183,7 @@ protected:
UsageType m_eUsageType;
- CFX_MapPtrTemplate<const CPDF_Dictionary*, void*> m_OCGStates;
+ std::map<const CPDF_Dictionary*, FX_BOOL> m_OCGStates;
};
class CPDF_LWinParam
{
diff --git a/core/include/fxge/fx_font.h b/core/include/fxge/fx_font.h
index 40822936e5..44e578df59 100644
--- a/core/include/fxge/fx_font.h
+++ b/core/include/fxge/fx_font.h
@@ -7,6 +7,8 @@
#ifndef CORE_INCLUDE_FXGE_FX_FONT_H_
#define CORE_INCLUDE_FXGE_FX_FONT_H_
+#include <map>
+
#include "../fxcrt/fx_system.h"
#include "fx_dib.h"
@@ -384,7 +386,7 @@ public:
CFX_FaceCache* m_Obj;
FX_DWORD m_nCount;
};
-typedef CFX_MapPtrTemplate<FXFT_Face, CFX_CountedFaceCache*> CFX_FTCacheMap;
+
class CFX_FontCache
{
public:
@@ -394,8 +396,9 @@ public:
void FreeCache(FX_BOOL bRelease = FALSE);
private:
- CFX_FTCacheMap m_FTFaceMap;
- CFX_FTCacheMap m_ExtFaceMap;
+ using CFX_FTCacheMap = std::map<FXFT_Face, CFX_CountedFaceCache*>;
+ CFX_FTCacheMap m_FTFaceMap;
+ CFX_FTCacheMap m_ExtFaceMap;
};
class CFX_AutoFontCache
{