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

Unified Diff: xfa/src/fxbarcode/BC_BinaryBitmap.cpp

Issue 1726373002: Remove foo != NULL checks in xfa/src/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 4 years, 10 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 | « no previous file | xfa/src/fxbarcode/BC_TwoDimWriter.cpp » ('j') | xfa/src/fxbarcode/oned/BC_OnedEAN8Reader.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fxbarcode/BC_BinaryBitmap.cpp
diff --git a/xfa/src/fxbarcode/BC_BinaryBitmap.cpp b/xfa/src/fxbarcode/BC_BinaryBitmap.cpp
index 23789cc8a23457fae33ff6b0218c5c0cd96c320d..e2f7f0f5e1ff5e68cafa89305046460c27f891cc 100644
--- a/xfa/src/fxbarcode/BC_BinaryBitmap.cpp
+++ b/xfa/src/fxbarcode/BC_BinaryBitmap.cpp
@@ -29,10 +29,7 @@
CBC_BinaryBitmap::CBC_BinaryBitmap(CBC_Binarizer* binarizer)
: m_binarizer(binarizer), m_matrix(NULL) {}
CBC_BinaryBitmap::~CBC_BinaryBitmap() {
- if (m_matrix != NULL) {
- delete m_matrix;
- }
- m_matrix = NULL;
+ delete m_matrix;
}
int32_t CBC_BinaryBitmap::GetHeight() {
return m_binarizer->GetLuminanceSource()->GetHeight();
« no previous file with comments | « no previous file | xfa/src/fxbarcode/BC_TwoDimWriter.cpp » ('j') | xfa/src/fxbarcode/oned/BC_OnedEAN8Reader.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698