Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Unified Diff: core/src/fxge/ge/text_int.h

Issue 1520643002: Replace several more CFX_MapPtrToPtr with std::set or std::map (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/src/fxge/ge/text_int.h
diff --git a/core/src/fxge/ge/text_int.h b/core/src/fxge/ge/text_int.h
index 1b96cfbdd2b1149a7cb574d5284a670eb6d5ef8a..5a691671be9599594d6989d9b2ff09329631c215 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:
« core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp ('K') | « core/src/fxge/ge/fx_ge_text.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698