| Index: xfa/src/fxbarcode/BC_Writer.cpp
|
| diff --git a/xfa/src/fxbarcode/BC_Writer.cpp b/xfa/src/fxbarcode/BC_Writer.cpp
|
| index e98c6f5537a0189b5c0fa22d731c27f0d31da6a0..889d6728d32be6ed98d5e4240d8d3df202a87b9b 100644
|
| --- a/xfa/src/fxbarcode/BC_Writer.cpp
|
| +++ b/xfa/src/fxbarcode/BC_Writer.cpp
|
| @@ -50,10 +50,7 @@ void CBC_Writer::SetBarcodeColor(FX_ARGB foregroundColor) {
|
| m_barColor = foregroundColor;
|
| }
|
| CFX_DIBitmap* CBC_Writer::CreateDIBitmap(int32_t width, int32_t height) {
|
| - CFX_DIBitmap* pDIBitmap = NULL;
|
| - pDIBitmap = new CFX_DIBitmap;
|
| - if (pDIBitmap != NULL) {
|
| - pDIBitmap->Create(width, height, m_colorSpace);
|
| - }
|
| + CFX_DIBitmap* pDIBitmap = new CFX_DIBitmap;
|
| + pDIBitmap->Create(width, height, m_colorSpace);
|
| return pDIBitmap;
|
| }
|
|
|