summaryrefslogtreecommitdiff
path: root/core/src/fxge/ge/fx_ge_fontmap.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-12-22 13:48:10 -0800
committerLei Zhang <thestig@chromium.org>2015-12-22 13:48:10 -0800
commit1fc92867ca53f0fba4272fbee3814d844f487495 (patch)
tree8c81760b66d1e8da186bddc52d38f350f4e85bf1 /core/src/fxge/ge/fx_ge_fontmap.cpp
parentf6dafc90ec1a0df8d618efc68c0223f0cdd80ffb (diff)
downloadpdfium-1fc92867ca53f0fba4272fbee3814d844f487495.tar.xz
Add ContainsKey() and ContainsValue() and use them where appropriate.
R=ochang@chromium.org Review URL: https://codereview.chromium.org/1540263003 .
Diffstat (limited to 'core/src/fxge/ge/fx_ge_fontmap.cpp')
-rw-r--r--core/src/fxge/ge/fx_ge_fontmap.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp
index d169081b5f..1101da2344 100644
--- a/core/src/fxge/ge/fx_ge_fontmap.cpp
+++ b/core/src/fxge/ge/fx_ge_fontmap.cpp
@@ -9,7 +9,7 @@
#include "core/include/fxge/fx_freetype.h"
#include "core/include/fxge/fx_ge.h"
#include "core/src/fxge/fontdata/chromefontdata/chromefontdata.h"
-#include "text_int.h"
+#include "core/src/fxge/ge/text_int.h"
#include "third_party/base/stl_util.h"
#define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1])
@@ -1347,9 +1347,9 @@ void CFX_FolderFontInfo::ReportFace(CFX_ByteString& path,
if (style != "Regular") {
facename += " " + style;
}
- if (m_FontList.find(facename) != m_FontList.end()) {
+ if (pdfium::ContainsKey(m_FontList, facename))
return;
- }
+
CFX_FontFaceInfo* pInfo =
new CFX_FontFaceInfo(path, facename, tables, offset, filesize);
CFX_ByteString os2 = FPDF_LoadTableFromTT(pFile, tables, nTables, 0x4f532f32);