diff options
author | Lei Zhang <thestig@chromium.org> | 2015-06-19 18:11:07 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-06-19 18:11:07 -0700 |
commit | 606346f584700bdae0741066f2e6d2481744032c (patch) | |
tree | 8f6afe79644cc515795af83dc8a06b207afb1bd6 /core/include/fxge | |
parent | 6d8b1c2c7b1cbada20109f70ae971a4192330bb5 (diff) | |
download | pdfium-606346f584700bdae0741066f2e6d2481744032c.tar.xz |
Merge to XFA: Replace some CFX_MapPtrTemplates with std::map.
There are more CFX_MapPtrTemplate usage on the XFA branch, so it is
not removed.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1181593003.
(cherry picked from commit e8d3691c82d1be805ffdce3329d00313af7ce0ab)
Review URL: https://codereview.chromium.org/1198663004.
Diffstat (limited to 'core/include/fxge')
-rw-r--r-- | core/include/fxge/fx_font.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 { |