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

Unified Diff: xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp

Issue 1726373002: Remove foo != NULL checks in xfa/src/fxbarcode. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase 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
Index: xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp
diff --git a/xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp b/xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp
index 5342cfcca7a872f04c8b0248bef66bc9b6523ec2..a4ad0c4e65d836df75597c3794377ae57b931c2e 100644
--- a/xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp
+++ b/xfa/src/fxbarcode/common/BC_CommonDecoderResult.cpp
@@ -61,9 +61,7 @@ void CBC_CommonDecoderResult::setOther(CBC_PDF417ResultMetadata* other) {
m_other = other;
}
CBC_CommonDecoderResult::~CBC_CommonDecoderResult() {
- if (m_other != NULL) {
- delete m_other;
- }
+ delete m_other;
}
const CFX_ByteArray& CBC_CommonDecoderResult::GetRawBytes() {
return m_rawBytes;
« no previous file with comments | « xfa/src/fxbarcode/common/BC_CommonByteMatrix.cpp ('k') | xfa/src/fxbarcode/common/BC_WhiteRectangleDetector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698