summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/ttgsubtable.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-10-05 08:07:30 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-05 08:07:30 -0700
commit7c1b07fde27dfbbf1d979d9dfd616b1a42591e5f (patch)
tree50b95879a4b6c3b4d69b7aef9fda6dc3b1041cd2 /core/fpdfapi/font/ttgsubtable.cpp
parent958e57cbe864f356140b74cbc3b70bf352187bd4 (diff)
downloadpdfium-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/ttgsubtable.cpp')
-rw-r--r--core/fpdfapi/font/ttgsubtable.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fpdfapi/font/ttgsubtable.cpp b/core/fpdfapi/font/ttgsubtable.cpp
index 51f533d7d1..c037746c1e 100644
--- a/core/fpdfapi/font/ttgsubtable.cpp
+++ b/core/fpdfapi/font/ttgsubtable.cpp
@@ -47,22 +47,22 @@ void CFX_GlyphMap::SetAt(int key, int value) {
m_Buffer.InsertBlock(low * sizeof(_IntPair), &pair, sizeof(_IntPair));
}
-FX_BOOL CFX_GlyphMap::Lookup(int key, int& value) {
+bool CFX_GlyphMap::Lookup(int key, int& value) {
void* pResult = FXSYS_bsearch(&key, m_Buffer.GetBuffer(),
m_Buffer.GetSize() / sizeof(_IntPair),
sizeof(_IntPair), _CompareInt);
if (!pResult) {
- return FALSE;
+ return false;
}
value = ((uint32_t*)pResult)[1];
- return TRUE;
+ return true;
}
CFX_CTTGSUBTable::CFX_CTTGSUBTable()
- : m_bFeautureMapLoad(FALSE), loaded(false) {}
+ : m_bFeautureMapLoad(false), loaded(false) {}
CFX_CTTGSUBTable::CFX_CTTGSUBTable(FT_Bytes gsub)
- : m_bFeautureMapLoad(FALSE), loaded(false) {
+ : m_bFeautureMapLoad(false), loaded(false) {
LoadGSUBTable(gsub);
}
@@ -115,7 +115,7 @@ bool CFX_CTTGSUBTable::GetVerticalGlyph(uint32_t glyphnum,
}
}
}
- m_bFeautureMapLoad = TRUE;
+ m_bFeautureMapLoad = true;
}
for (const auto& pair : m_featureMap) {
if (GetVerticalGlyphSub(glyphnum, vglyphnum,