diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-16 14:21:25 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-16 14:21:25 -0700 |
commit | cfc1a654ef3e8b65bc447815d35932c185bf1422 (patch) | |
tree | 76c58e46dce03348634cdc6bc199a9eead783b0d /core/src/fxcodec/codec/fx_codec_fax.cpp | |
parent | 357d16f8453c2cf0c0afd00eec9e86d03d55fe69 (diff) | |
download | pdfium-cfc1a654ef3e8b65bc447815d35932c185bf1422.tar.xz |
Replace FX_NEW with new, remote tests from fxcodec
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1084303002
Diffstat (limited to 'core/src/fxcodec/codec/fx_codec_fax.cpp')
-rw-r--r-- | core/src/fxcodec/codec/fx_codec_fax.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/fxcodec/codec/fx_codec_fax.cpp b/core/src/fxcodec/codec/fx_codec_fax.cpp index c6ab791a0e..667b713df8 100644 --- a/core/src/fxcodec/codec/fx_codec_fax.cpp +++ b/core/src/fxcodec/codec/fx_codec_fax.cpp @@ -994,10 +994,7 @@ FX_BOOL CCodec_FaxModule::Encode(FX_LPCBYTE src_buf, int width, int height, int ICodec_ScanlineDecoder* CCodec_FaxModule::CreateDecoder(FX_LPCBYTE src_buf, FX_DWORD src_size, int width, int height, int K, FX_BOOL EndOfLine, FX_BOOL EncodedByteAlign, FX_BOOL BlackIs1, int Columns, int Rows) { - CCodec_FaxDecoder* pDecoder = FX_NEW CCodec_FaxDecoder; - if (pDecoder == NULL) { - return NULL; - } + CCodec_FaxDecoder* pDecoder = new CCodec_FaxDecoder; pDecoder->Create(src_buf, src_size, width, height, K, EndOfLine, EncodedByteAlign, BlackIs1, Columns, Rows); return pDecoder; } |