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

Unified Diff: xfa/fgas/font/fgas_gefont.h

Issue 2002673002: Use std::map for CFX_GEFont::m_FontMapper (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 7 months 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
« no previous file with comments | « no previous file | xfa/fgas/font/fgas_gefont.cpp » ('j') | xfa/fgas/font/fgas_gefont.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fgas/font/fgas_gefont.h
diff --git a/xfa/fgas/font/fgas_gefont.h b/xfa/fgas/font/fgas_gefont.h
index 8595782dc33c154c86c8d6c4af47d6fbabdd6723..aa072280d53ec28c2c4b87f1214b22c638b93367 100644
--- a/xfa/fgas/font/fgas_gefont.h
+++ b/xfa/fgas/font/fgas_gefont.h
@@ -7,6 +7,8 @@
#ifndef XFA_FGAS_FONT_FGAS_GEFONT_H_
#define XFA_FGAS_FONT_FGAS_GEFONT_H_
+#include <map>
+
#include "xfa/fgas/crt/fgas_utils.h"
#include "xfa/fgas/font/fgas_font.h"
@@ -75,7 +77,7 @@ class CFX_GEFont : public IFX_Font {
CXFA_PDFFontMgr* m_pProvider;
uint16_t m_wCharSet;
CFX_ArrayTemplate<IFX_Font*> m_SubstFonts;
- CFX_MapPtrToPtr m_FontMapper;
+ std::map<FX_WCHAR, IFX_Font*> m_FontMapper;
FX_BOOL InitFont();
FX_BOOL GetCharBBox(FX_WCHAR wUnicode,
CFX_Rect& bbox,
« no previous file with comments | « no previous file | xfa/fgas/font/fgas_gefont.cpp » ('j') | xfa/fgas/font/fgas_gefont.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698