diff options
author | Lei Zhang <thestig@chromium.org> | 2015-05-06 15:09:06 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-05-06 15:09:06 -0700 |
commit | 2c4104443f5a7aea225bd853770cdc11ab431932 (patch) | |
tree | 1a2b640d07a4501c7409f9ad5a6323971f813365 /core/src/fxcodec/codec/fx_codec_fax.cpp | |
parent | 5734d862cb22eca6e9644ea7d1c096d70123434f (diff) | |
download | pdfium-2c4104443f5a7aea225bd853770cdc11ab431932.tar.xz |
Merge to XFA: Replace FX_NEW with new, remote tests from fxcodec
Review URL: https://codereview.chromium.org/1084303002
(cherry picked from commit cfc1a654ef3e8b65bc447815d35932c185bf1422)
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1125363002
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; } |