From 23378cdf2c0be861bddfffd82aed8cd6b07d77bf Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 20 Oct 2015 10:21:36 -0700 Subject: XFA: Remove cond ? TRUE : FALSE. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1409323003 . --- core/src/fxcodec/codec/fx_codec_progress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/src/fxcodec/codec/fx_codec_progress.cpp b/core/src/fxcodec/codec/fx_codec_progress.cpp index 0ad4c2a668..885b751a1b 100644 --- a/core/src/fxcodec/codec/fx_codec_progress.cpp +++ b/core/src/fxcodec/codec/fx_codec_progress.cpp @@ -716,7 +716,7 @@ void CCodec_ProgressiveDecoder::GifReadScanlineCallback(void* pModule, pal_index = pCodec->m_GifTransIndex; } FXSYS_memset(pCodec->m_pDecodeBuf, pal_index, pCodec->m_SrcWidth); - FX_BOOL bLastPass = ((row_num % 2) == 1) ? TRUE : FALSE; + FX_BOOL bLastPass = (row_num % 2) == 1; int32_t line = row_num + pCodec->m_GifFrameRect.top; int32_t left = pCodec->m_GifFrameRect.left; FXSYS_memcpy(pCodec->m_pDecodeBuf + left, row_buf, img_width); -- cgit v1.2.3