diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-08-18 09:20:29 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-08-18 09:20:29 -0700 |
commit | 85d5c4af4a9546970b34dd413c473d10fef8534b (patch) | |
tree | b993a0309a69b5c31c122971be04d062e3ae341c /core/src/fpdfapi/fpdf_font/font_int.h | |
parent | 57207efd5f17ec63e174061ea5415afb58516fce (diff) | |
download | pdfium-85d5c4af4a9546970b34dd413c473d10fef8534b.tar.xz |
FX_CMapDwordToDword considered harmful.
Lookups are log(n), but random insertions could result in n^2
behaviour. Replace with maps and sets.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1289703003 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/font_int.h')
-rw-r--r-- | core/src/fpdfapi/fpdf_font/font_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_font/font_int.h b/core/src/fpdfapi/fpdf_font/font_int.h index 30223ad63a..59acfcbd35 100644 --- a/core/src/fpdfapi/fpdf_font/font_int.h +++ b/core/src/fpdfapi/fpdf_font/font_int.h @@ -172,7 +172,7 @@ class CPDF_ToUnicodeMap { FX_DWORD ReverseLookup(FX_WCHAR unicode); protected: - CFX_CMapDWordToDWord m_Map; + std::map<FX_DWORD, FX_DWORD> m_Map; CPDF_CID2UnicodeMap* m_pBaseMap; CFX_WideTextBuf m_MultiCharBuf; }; |