From 421b4612439ee3a81d675b542038c6c3ff25e977 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 2 Oct 2015 10:22:14 -0700 Subject: XFA: Remove test for new. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1377853004 . --- xfa/src/fxbarcode/BC_Writer.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'xfa/src/fxbarcode/BC_Writer.cpp') 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; } -- cgit v1.2.3