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_font.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_font.cpp')
-rw-r--r-- | core/fpdfapi/font/cpdf_font.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/core/fpdfapi/font/cpdf_font.cpp b/core/fpdfapi/font/cpdf_font.cpp index caacc18a97..1cfecb8ded 100644 --- a/core/fpdfapi/font/cpdf_font.cpp +++ b/core/fpdfapi/font/cpdf_font.cpp @@ -166,33 +166,33 @@ uint32_t CPDF_Font::CharCodeFromUnicode(FX_WCHAR unicode) const { void CPDF_Font::LoadFontDescriptor(CPDF_Dictionary* pFontDesc) { m_Flags = pFontDesc->GetIntegerFor("Flags", PDFFONT_NONSYMBOLIC); int ItalicAngle = 0; - FX_BOOL bExistItalicAngle = FALSE; + bool bExistItalicAngle = false; if (pFontDesc->KeyExist("ItalicAngle")) { ItalicAngle = pFontDesc->GetIntegerFor("ItalicAngle"); - bExistItalicAngle = TRUE; + bExistItalicAngle = true; } if (ItalicAngle < 0) { m_Flags |= PDFFONT_ITALIC; m_ItalicAngle = ItalicAngle; } - FX_BOOL bExistStemV = FALSE; + bool bExistStemV = false; if (pFontDesc->KeyExist("StemV")) { m_StemV = pFontDesc->GetIntegerFor("StemV"); - bExistStemV = TRUE; + bExistStemV = true; } - FX_BOOL bExistAscent = FALSE; + bool bExistAscent = false; if (pFontDesc->KeyExist("Ascent")) { m_Ascent = pFontDesc->GetIntegerFor("Ascent"); - bExistAscent = TRUE; + bExistAscent = true; } - FX_BOOL bExistDescent = FALSE; + bool bExistDescent = false; if (pFontDesc->KeyExist("Descent")) { m_Descent = pFontDesc->GetIntegerFor("Descent"); - bExistDescent = TRUE; + bExistDescent = true; } - FX_BOOL bExistCapHeight = FALSE; + bool bExistCapHeight = false; if (pFontDesc->KeyExist("CapHeight")) { - bExistCapHeight = TRUE; + bExistCapHeight = true; } if (bExistItalicAngle && bExistAscent && bExistCapHeight && bExistDescent && bExistStemV) { @@ -242,7 +242,7 @@ void CPDF_Font::CheckFontMetrics() { m_Ascent = TT2PDF(FXFT_Get_Face_Ascender(face), face); m_Descent = TT2PDF(FXFT_Get_Face_Descender(face), face); } else { - FX_BOOL bFirst = TRUE; + bool bFirst = true; for (int i = 0; i < 256; i++) { FX_RECT rect = GetCharBBox(i); if (rect.left == rect.right) { @@ -250,7 +250,7 @@ void CPDF_Font::CheckFontMetrics() { } if (bFirst) { m_FontBBox = rect; - bFirst = FALSE; + bFirst = false; } else { if (m_FontBBox.top < rect.top) { m_FontBBox.top = rect.top; |