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

Unified Diff: core/src/fpdfapi/fpdf_font/ttgsubtable.h

Issue 1512763013: Get rid of most instance of 'foo != NULL' (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years 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
Index: 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 e3c996565460789a204d6844e03785a0f8c03fdf..03bf6b3ebf252fd79a121a6e94897843906ce5eb 100644
--- a/core/src/fpdfapi/fpdf_font/ttgsubtable.h
+++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.h
@@ -277,7 +277,7 @@ class CFX_CTTGSUBTable {
TLookup()
: LookupType(0), LookupFlag(0), SubTableCount(0), SubTable(NULL) {}
~TLookup() {
- if (SubTableCount > 0 && SubTable != NULL) {
+ if (SubTableCount > 0 && SubTable) {
Tom Sepez 2015/12/14 19:14:07 nit: could we write if (SubTable && SubTableCo
Lei Zhang 2015/12/15 01:38:32 Done.
for (int i = 0; i < SubTableCount; i++) {
delete SubTable[i];
}

Powered by Google App Engine
This is Rietveld 408576698