summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/BC_Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fxbarcode/BC_Writer.cpp')
-rw-r--r--xfa/src/fxbarcode/BC_Writer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/xfa/src/fxbarcode/BC_Writer.cpp b/xfa/src/fxbarcode/BC_Writer.cpp
index e98c6f5537..889d6728d3 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;
}