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_CommonBitMatrix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fxbarcode/common/BC_CommonBitMatrix.cpp') diff --git a/xfa/fxbarcode/common/BC_CommonBitMatrix.cpp b/xfa/fxbarcode/common/BC_CommonBitMatrix.cpp index 4fff7b1a84..e52f3dca04 100644 --- a/xfa/fxbarcode/common/BC_CommonBitMatrix.cpp +++ b/xfa/fxbarcode/common/BC_CommonBitMatrix.cpp @@ -28,7 +28,7 @@ CBC_CommonBitMatrix::CBC_CommonBitMatrix() { m_width = 0; m_height = 0; m_rowSize = 0; - m_bits = NULL; + m_bits = nullptr; } void CBC_CommonBitMatrix::Init(int32_t dimension) { m_width = dimension; @@ -103,8 +103,8 @@ void CBC_CommonBitMatrix::SetRegion(int32_t left, } CBC_CommonBitArray* CBC_CommonBitMatrix::GetRow(int32_t y, CBC_CommonBitArray* row) { - CBC_CommonBitArray* rowArray = NULL; - if (row == NULL || row->GetSize() < m_width) { + CBC_CommonBitArray* rowArray = nullptr; + if (!row || row->GetSize() < m_width) { rowArray = new CBC_CommonBitArray(m_width); } else { rowArray = new CBC_CommonBitArray(row); -- cgit v1.2.3