Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2442)

Unified Diff: core/fpdfapi/font/ttgsubtable.cpp

Issue 2395803002: Remove FX_BOOL from core/fpdfapi/font (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/fpdfapi/font/ttgsubtable.h ('k') | core/fpdfapi/page/fpdf_page_parser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfapi/font/ttgsubtable.cpp
diff --git a/core/fpdfapi/font/ttgsubtable.cpp b/core/fpdfapi/font/ttgsubtable.cpp
index 51f533d7d183105c513c6f9ef3bd3984b1e5e369..c037746c1eebdb89f12f722e3d59685e660e7446 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,
« no previous file with comments | « core/fpdfapi/font/ttgsubtable.h ('k') | core/fpdfapi/page/fpdf_page_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698