summaryrefslogtreecommitdiff
path: root/xfa/fxbarcode/common/BC_CommonECI.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-06-09 18:39:33 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-09 18:39:33 -0700
commit6dc1d7753691c0ff2f390e8ffd95a3182064487e (patch)
tree43d77664973a76c107832ae7b3c3e0f04bba1fe0 /xfa/fxbarcode/common/BC_CommonECI.cpp
parentfcf61b39ee597c73e80ba789833fb7fe49878422 (diff)
downloadpdfium-6dc1d7753691c0ff2f390e8ffd95a3182064487e.tar.xz
Get rid of NULLs in xfa/fxbarcode/
Review-Url: https://codereview.chromium.org/2048983002
Diffstat (limited to 'xfa/fxbarcode/common/BC_CommonECI.cpp')
-rw-r--r--xfa/fxbarcode/common/BC_CommonECI.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/xfa/fxbarcode/common/BC_CommonECI.cpp b/xfa/fxbarcode/common/BC_CommonECI.cpp
index 4e37aec566..30d21310f4 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;
}