From 6dc1d7753691c0ff2f390e8ffd95a3182064487e Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 9 Jun 2016 18:39:33 -0700 Subject: Get rid of NULLs in xfa/fxbarcode/ Review-Url: https://codereview.chromium.org/2048983002 --- xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp') diff --git a/xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp b/xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp index d4a33229cf..53f18cc21b 100644 --- a/xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp +++ b/xfa/fxbarcode/common/BC_GlobalHistogramBinarizer.cpp @@ -87,7 +87,7 @@ CBC_CommonBitMatrix* CBC_GlobalHistogramBinarizer::GetBlackMatrix(int32_t& e) { for (y = 1; y < 5; y++) { int32_t row = height * y / 5; CFX_ByteArray* localLuminances = source->GetRow(row, m_luminance, e); - BC_EXCEPTION_CHECK_ReturnValue(e, NULL); + BC_EXCEPTION_CHECK_ReturnValue(e, nullptr); int32_t right = (width << 2) / 5; int32_t x; for (x = width / 5; x < right; x++) { @@ -96,7 +96,7 @@ CBC_CommonBitMatrix* CBC_GlobalHistogramBinarizer::GetBlackMatrix(int32_t& e) { } } int32_t blackPoint = EstimateBlackPoint(localBuckets, e); - BC_EXCEPTION_CHECK_ReturnValue(e, NULL); + BC_EXCEPTION_CHECK_ReturnValue(e, nullptr); std::unique_ptr localLuminances(source->GetMatrix()); for (y = 0; y < height; y++) { int32_t offset = y * width; -- cgit v1.2.3