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

Unified Diff: fpdfsdk/src/fxedit/fxet_module.cpp

Issue 1529553003: Merge to XFA: Get rid of most instance of 'foo != NULL' (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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: fpdfsdk/src/fxedit/fxet_module.cpp
diff --git a/fpdfsdk/src/fxedit/fxet_module.cpp b/fpdfsdk/src/fxedit/fxet_module.cpp
index 12f2c86e033b4b46c97d86955d8174e30426527a..553cf3a62fbc110b9ac6e676e05a736e2ce2d0c6 100644
--- a/fpdfsdk/src/fxedit/fxet_module.cpp
+++ b/fpdfsdk/src/fxedit/fxet_module.cpp
@@ -19,8 +19,6 @@ IFX_Edit* IFX_Edit::NewEdit() {
}
void IFX_Edit::DelEdit(IFX_Edit* pEdit) {
- ASSERT(pEdit != NULL);
-
IPDF_VariableText::DelVariableText(pEdit->GetVariableText());
delete (CFX_Edit*)pEdit;
@@ -33,7 +31,6 @@ IFX_List* IFX_List::NewList() {
}
void IFX_List::DelList(IFX_List* pList) {
- ASSERT(pList != NULL);
-
+ ASSERT(pList);
delete (CFX_ListCtrl*)pList;
}

Powered by Google App Engine
This is Rietveld 408576698