From ff46aaf499edcf153ee2f57c7016587aa96dcfa0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 27 Jul 2015 11:55:29 -0700 Subject: FX Bool considered harmful, part 3 Try to reland this patch after fixing underlying issues that caused it to be reverted. fx_system.h is the only manual edit. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1258093002 . --- core/src/fpdfapi/fpdf_font/ttgsubtable.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/src/fpdfapi/fpdf_font/ttgsubtable.h') diff --git a/core/src/fpdfapi/fpdf_font/ttgsubtable.h b/core/src/fpdfapi/fpdf_font/ttgsubtable.h index 1b18f82d6e..133667b4d8 100644 --- a/core/src/fpdfapi/fpdf_font/ttgsubtable.h +++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.h @@ -17,15 +17,15 @@ public: CFX_GlyphMap(); ~CFX_GlyphMap(); void SetAt(int key, int value); - FX_BOOL Lookup(int key, int &value); + bool Lookup(int key, int &value); protected: CFX_BinaryBuf m_Buffer; }; class CFX_CTTGSUBTable { public: - CFX_CTTGSUBTable(void): m_bFeautureMapLoad(FALSE), loaded(false) {}; - CFX_CTTGSUBTable(FT_Bytes gsub): m_bFeautureMapLoad(FALSE), loaded(false) + CFX_CTTGSUBTable(void): m_bFeautureMapLoad(false), loaded(false) {}; + CFX_CTTGSUBTable(FT_Bytes gsub): m_bFeautureMapLoad(false), loaded(false) { LoadGSUBTable(gsub); } @@ -395,7 +395,7 @@ private: return ret; } CFX_CMapDWordToDWord m_featureMap; - FX_BOOL m_bFeautureMapLoad; + bool m_bFeautureMapLoad; bool loaded; struct tt_gsub_header header; struct TScriptList ScriptList; @@ -406,7 +406,7 @@ class CFX_GSUBTable final : public IFX_GSUBTable { public: ~CFX_GSUBTable() override {} - virtual FX_BOOL GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) override; + virtual bool GetVerticalGlyph(FX_DWORD glyphnum, FX_DWORD* vglyphnum) override; CFX_CTTGSUBTable m_GsubImp; }; -- cgit v1.2.3