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

Unified Diff: core/src/fxcrt/fx_basic_plex.cpp

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/fxcrt/fx_basic_plex.cpp
diff --git a/core/src/fxcrt/fx_basic_plex.cpp b/core/src/fxcrt/fx_basic_plex.cpp
index b6383ecf20ca705840a8ea5e224595f3e79c3c53..f4805d4cbb18a85bb07cbc27842971e22cb811e1 100644
--- a/core/src/fxcrt/fx_basic_plex.cpp
+++ b/core/src/fxcrt/fx_basic_plex.cpp
@@ -18,7 +18,7 @@ CFX_Plex* CFX_Plex::Create(CFX_Plex*& pHead,
}
void CFX_Plex::FreeDataChain() {
CFX_Plex* p = this;
- while (p != NULL) {
+ while (p) {
uint8_t* bytes = (uint8_t*)p;
CFX_Plex* pNext = p->pNext;
Tom Sepez 2015/12/14 19:14:11 nit: no need for pNext, just re-assign p here?, al
Lei Zhang 2015/12/15 01:38:33 Done.
FX_Free(bytes);

Powered by Google App Engine
This is Rietveld 408576698