Index: core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
diff --git a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
index 4786b8be94fd8e9d5376c39e3feafe7e98622a6e..035ea8a0ff85f016c083fa107cb3975c4b46ac65 100644 |
--- a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
+++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp |
@@ -47,7 +47,7 @@ FX_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 == NULL) { |
+ if (!pResult) { |
return FALSE; |
} |
value = ((FX_DWORD*)pResult)[1]; |
@@ -158,7 +158,7 @@ bool CFX_CTTGSUBTable::GetVerticalGlyphSub2(uint32_t glyphnum, |
int CFX_CTTGSUBTable::GetCoverageIndex(struct TCoverageFormatBase* Coverage, |
uint32_t g) { |
int i = 0; |
- if (Coverage == NULL) { |
+ if (!Coverage) { |
return -1; |
} |
switch (Coverage->CoverageFormat) { |