summaryrefslogtreecommitdiff
path: root/xfa/src/fxbarcode/BC_Writer.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-02 10:22:14 -0700
committerLei Zhang <thestig@chromium.org>2015-10-02 10:22:14 -0700
commit421b4612439ee3a81d675b542038c6c3ff25e977 (patch)
tree5cc05d8c1cbf7825dfd60dc8219af390f8066e78 /xfa/src/fxbarcode/BC_Writer.cpp
parentdb5256fb4ad0678ab7f895c40391cb77a3ba40fa (diff)
downloadpdfium-421b4612439ee3a81d675b542038c6c3ff25e977.tar.xz
XFA: Remove test for new.
R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1377853004 .
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;
}