diff options
author | npm <npm@chromium.org> | 2016-09-23 16:54:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-23 16:54:50 -0700 |
commit | bfe9afc2ab1d883bb036a1c3b35b429229708875 (patch) | |
tree | 75572f3a19e07ec73a7f15fb3811e78d72f3104e /core/fpdfapi/fpdf_font/include | |
parent | b4d7c682bd47f12cb16a5c5c523f58ea0742c730 (diff) | |
download | pdfium-bfe9afc2ab1d883bb036a1c3b35b429229708875.tar.xz |
Remove FX_BOOL from cpdf_fontchromium/2872chromium/2871chromium/2870
In all cases, bool can be used instead without problems.
Review-Url: https://codereview.chromium.org/2368693002
Diffstat (limited to 'core/fpdfapi/fpdf_font/include')
-rw-r--r-- | core/fpdfapi/fpdf_font/include/cpdf_font.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/core/fpdfapi/fpdf_font/include/cpdf_font.h b/core/fpdfapi/fpdf_font/include/cpdf_font.h index eb91524320..f3985546fe 100644 --- a/core/fpdfapi/fpdf_font/include/cpdf_font.h +++ b/core/fpdfapi/fpdf_font/include/cpdf_font.h @@ -59,8 +59,8 @@ class CPDF_Font { virtual const CPDF_CIDFont* AsCIDFont() const; virtual CPDF_CIDFont* AsCIDFont(); - virtual FX_BOOL IsVertWriting() const; - virtual FX_BOOL IsUnicodeCompatible() const; + virtual bool IsVertWriting() const; + virtual bool IsUnicodeCompatible() const; virtual uint32_t GetNextChar(const FX_CHAR* pString, int nStrLen, int& offset) const; @@ -75,10 +75,10 @@ class CPDF_Font { const CFX_ByteString& GetBaseFont() const { return m_BaseFont; } CFX_SubstFont* GetSubstFont() const { return m_Font.GetSubstFont(); } uint32_t GetFlags() const { return m_Flags; } - FX_BOOL IsEmbedded() const { return IsType3Font() || m_pFontFile != nullptr; } + bool IsEmbedded() const { return IsType3Font() || m_pFontFile != nullptr; } CPDF_StreamAcc* GetFontFile() const { return m_pFontFile; } CPDF_Dictionary* GetFontDict() const { return m_pFontDict; } - FX_BOOL IsStandardFont() const; + bool IsStandardFont() const; FXFT_Face GetFace() const { return m_Font.GetFace(); } void AppendChar(CFX_ByteString& str, uint32_t charcode) const; @@ -101,15 +101,14 @@ class CPDF_Font { protected: CPDF_Font(); - virtual FX_BOOL Load() = 0; + virtual bool Load() = 0; - FX_BOOL Initialize(); void LoadUnicodeMap() const; // logically const only. void LoadPDFEncoding(CPDF_Object* pEncoding, int& iBaseEncoding, std::vector<CFX_ByteString>* pCharNames, - FX_BOOL bEmbedded, - FX_BOOL bTrueType); + bool bEmbedded, + bool bTrueType); void LoadFontDescriptor(CPDF_Dictionary* pDict); void CheckFontMetrics(); @@ -121,7 +120,7 @@ class CPDF_Font { CPDF_StreamAcc* m_pFontFile; CPDF_Dictionary* m_pFontDict; mutable std::unique_ptr<CPDF_ToUnicodeMap> m_pToUnicodeMap; - mutable FX_BOOL m_bToUnicodeLoaded; + mutable bool m_bToUnicodeLoaded; int m_Flags; FX_RECT m_FontBBox; int m_StemV; |