| Index: xfa/src/fxbarcode/qrcode/BC_QRCoderMode.cpp
|
| diff --git a/xfa/src/fxbarcode/qrcode/BC_QRCoderMode.cpp b/xfa/src/fxbarcode/qrcode/BC_QRCoderMode.cpp
|
| index 405cf5489dc486880e17f8a8b1369e361f37cced..e2e8809ff7d7617f754013858679a4ab3179fa4a 100644
|
| --- a/xfa/src/fxbarcode/qrcode/BC_QRCoderMode.cpp
|
| +++ b/xfa/src/fxbarcode/qrcode/BC_QRCoderMode.cpp
|
| @@ -40,7 +40,7 @@ CBC_QRCoderMode::CBC_QRCoderMode(int32_t* characterCountBitsForVersions,
|
| int32_t bits,
|
| CFX_ByteString name) {
|
| m_characterCountBitsForVersions = characterCountBitsForVersions;
|
| - if (m_characterCountBitsForVersions != NULL) {
|
| + if (m_characterCountBitsForVersions) {
|
| m_characterCountBitsForVersions[0] = x1;
|
| m_characterCountBitsForVersions[1] = x2;
|
| m_characterCountBitsForVersions[2] = x3;
|
| @@ -49,9 +49,7 @@ CBC_QRCoderMode::CBC_QRCoderMode(int32_t* characterCountBitsForVersions,
|
| m_bits = bits;
|
| }
|
| CBC_QRCoderMode::~CBC_QRCoderMode() {
|
| - if (m_characterCountBitsForVersions != NULL) {
|
| - FX_Free(m_characterCountBitsForVersions);
|
| - }
|
| + FX_Free(m_characterCountBitsForVersions);
|
| }
|
| void CBC_QRCoderMode::Initialize() {
|
| sBYTE = new CBC_QRCoderMode(FX_Alloc(int32_t, 3), 8, 16, 16, 0x4, "BYTE");
|
|
|