diff options
author | Lei Zhang <thestig@chromium.org> | 2015-12-22 13:49:44 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-12-22 13:49:44 -0800 |
commit | cd2bb30aba89a05c0bbd4d6973fa070205e3a1e8 (patch) | |
tree | 0eca7841e7be4b9392bbcd0ffb656a8495f64792 /core/src/fpdfapi/fpdf_font/ttgsubtable.cpp | |
parent | bc75f1737f7eb8d45c5a2ebd3ad78203782c1642 (diff) | |
download | pdfium-cd2bb30aba89a05c0bbd4d6973fa070205e3a1e8.tar.xz |
Merge to XFA: Add ContainsKey() and ContainsValue() and use them where appropriate.
TBR=ochang@chromium.org
Review URL: https://codereview.chromium.org/1540263003 .
(cherry picked from commit 1fc92867ca53f0fba4272fbee3814d844f487495)
Review URL: https://codereview.chromium.org/1542193002 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp')
-rw-r--r-- | core/src/fpdfapi/fpdf_font/ttgsubtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp index 035ea8a0ff..b10aa6952a 100644 --- a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp +++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp @@ -9,6 +9,7 @@ #include "core/include/fxge/fx_freetype.h" #include "core/include/fxge/fx_ge.h" #include "third_party/base/nonstd_unique_ptr.h" +#include "third_party/base/stl_util.h" CFX_GlyphMap::CFX_GlyphMap() {} CFX_GlyphMap::~CFX_GlyphMap() {} @@ -86,7 +87,7 @@ bool CFX_CTTGSUBTable::GetVerticalGlyph(uint32_t glyphnum, k); if (FeatureList.FeatureRecord[index].FeatureTag == tag[0] || FeatureList.FeatureRecord[index].FeatureTag == tag[1]) { - if (m_featureMap.find(index) == m_featureMap.end()) { + if (!pdfium::ContainsKey(m_featureMap, index)) { m_featureMap[index] = index; } } |