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

Unified Diff: xfa/fxbarcode/common/BC_CommonECI.cpp

Issue 2048983002: Get rid of NULLs in xfa/fxbarcode/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: nits Created 4 years, 6 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/fxbarcode/common/BC_CommonECI.cpp
diff --git a/xfa/fxbarcode/common/BC_CommonECI.cpp b/xfa/fxbarcode/common/BC_CommonECI.cpp
index 4e37aec566bd852320bb9f91a48e42909ec66c93..30d21310f47c4ae422bbd4f069fb4f102602c332 100644
--- a/xfa/fxbarcode/common/BC_CommonECI.cpp
+++ b/xfa/fxbarcode/common/BC_CommonECI.cpp
@@ -32,11 +32,7 @@ int32_t CBC_CommonECI::GetValue() {
return m_value;
}
CBC_CommonECI* CBC_CommonECI::GetEICByValue(int32_t value, int32_t& e) {
- if (value < 0 || value > 999999) {
+ if (value < 0 || value > 999999)
e = BCExceptionBadECI;
- return NULL;
- }
- if (value < 900) {
- }
- return NULL;
+ return nullptr;
}
« no previous file with comments | « xfa/fxbarcode/common/BC_CommonDecoderResult.cpp ('k') | xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698