diff options
author | npm <npm@chromium.org> | 2016-10-05 08:07:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-05 08:07:30 -0700 |
commit | 7c1b07fde27dfbbf1d979d9dfd616b1a42591e5f (patch) | |
tree | 50b95879a4b6c3b4d69b7aef9fda6dc3b1041cd2 /core/fpdfapi/font/cpdf_fontencoding.cpp | |
parent | 958e57cbe864f356140b74cbc3b70bf352187bd4 (diff) | |
download | pdfium-7c1b07fde27dfbbf1d979d9dfd616b1a42591e5f.tar.xz |
Remove FX_BOOL from core/fpdfapi/font
FX_BOOL can be replaced by bool. Also replaced in a couple other places
so that Winbots pass.
Review-Url: https://codereview.chromium.org/2395803002
Diffstat (limited to 'core/fpdfapi/font/cpdf_fontencoding.cpp')
-rw-r--r-- | core/fpdfapi/font/cpdf_fontencoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/font/cpdf_fontencoding.cpp b/core/fpdfapi/font/cpdf_fontencoding.cpp index 38cc66411f..fba35a1062 100644 --- a/core/fpdfapi/font/cpdf_fontencoding.cpp +++ b/core/fpdfapi/font/cpdf_fontencoding.cpp @@ -1665,7 +1665,7 @@ CPDF_FontEncoding::CPDF_FontEncoding(int PredefinedEncoding) { } } -FX_BOOL CPDF_FontEncoding::IsIdentical(CPDF_FontEncoding* pAnother) const { +bool CPDF_FontEncoding::IsIdentical(CPDF_FontEncoding* pAnother) const { return FXSYS_memcmp(m_Unicodes, pAnother->m_Unicodes, sizeof(m_Unicodes)) == 0; } @@ -1675,10 +1675,10 @@ CPDF_Object* CPDF_FontEncoding::Realize(CFX_WeakPtr<CFX_ByteStringPool> pPool) { for (int cs = PDFFONT_ENCODING_WINANSI; cs < PDFFONT_ENCODING_ZAPFDINGBATS; cs++) { const uint16_t* pSrc = PDF_UnicodesForPredefinedCharSet(cs); - FX_BOOL match = TRUE; + bool match = true; for (int i = 0; i < 256; ++i) { if (m_Unicodes[i] != pSrc[i]) { - match = FALSE; + match = false; break; } } |