diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-12-10 15:03:16 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-12-10 15:03:16 -0800 |
commit | 7db2a535f163e7ce5995da12161ebd0214f0f75a (patch) | |
tree | 0011af492c814606716cd62f0f6132ff83783c75 /core/src/fxge/ge/text_int.h | |
parent | f32c969bce6743fca1e7ff796b54a1692d26d7f0 (diff) | |
download | pdfium-7db2a535f163e7ce5995da12161ebd0214f0f75a.tar.xz |
Replace several more CFX_MapPtrToPtr with std::set or std::map
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1520643002 .
Diffstat (limited to 'core/src/fxge/ge/text_int.h')
-rw-r--r-- | core/src/fxge/ge/text_int.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/fxge/ge/text_int.h b/core/src/fxge/ge/text_int.h index 1b96cfbdd2..5a691671be 100644 --- a/core/src/fxge/ge/text_int.h +++ b/core/src/fxge/ge/text_int.h @@ -7,6 +7,8 @@ #ifndef CORE_SRC_FXGE_GE_TEXT_INT_H_ #define CORE_SRC_FXGE_GE_TEXT_INT_H_ +#include <map> + #include "core/include/fxge/fx_font.h" #include "core/include/fxge/fx_freetype.h" @@ -17,9 +19,9 @@ struct _CFX_UniqueKeyGen { }; class CFX_SizeGlyphCache { public: - CFX_SizeGlyphCache() { m_GlyphMap.InitHashTable(253); } + CFX_SizeGlyphCache() {} ~CFX_SizeGlyphCache(); - CFX_MapPtrToPtr m_GlyphMap; + std::map<FX_DWORD, CFX_GlyphBitmap*> m_GlyphMap; }; class CTTFontDesc { public: |