summaryrefslogtreecommitdiff
path: root/core/src/fxcodec
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-02-24 09:51:16 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-02-24 09:51:16 -0500
commit50cce609050e1a40e1d6936e0a3f0614b4483eee (patch)
treebdcd3399ee0c2fc5352ec8b008499a91ee08a422 /core/src/fxcodec
parenta7f70cc1ff7d54b92d9c55326c1439a25116e00c (diff)
downloadpdfium-50cce609050e1a40e1d6936e0a3f0614b4483eee.tar.xz
Fixing whitespace lint errors.
This CL enables several of the diabled whitelist/* lint checks. R=thestig@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/1730553002 .
Diffstat (limited to 'core/src/fxcodec')
-rw-r--r--core/src/fxcodec/codec/fx_codec_icc.cpp6
-rw-r--r--core/src/fxcodec/codec/fx_codec_progress.cpp12
-rw-r--r--core/src/fxcodec/lbmp/fx_bmp.cpp3
-rw-r--r--core/src/fxcodec/lbmp/fx_bmp.h3
-rw-r--r--core/src/fxcodec/lgif/fx_gif.h3
5 files changed, 18 insertions, 9 deletions
diff --git a/core/src/fxcodec/codec/fx_codec_icc.cpp b/core/src/fxcodec/codec/fx_codec_icc.cpp
index c2129eaef2..297f392a30 100644
--- a/core/src/fxcodec/codec/fx_codec_icc.cpp
+++ b/core/src/fxcodec/codec/fx_codec_icc.cpp
@@ -424,11 +424,13 @@ void* CCodec_IccModule::CreateProfile(ICodec_IccModule::IccParam* pIccParam,
case IccCS_Gray:
text.Format("%lf", pIccParam->Gamma);
break;
- default:;
+ default:
+ break;
}
MD5ComputeID(text.GetBuffer(0), text.GetLength(), ID);
break;
- default:;
+ default:
+ break;
}
key.AppendBlock(ID, 16);
CFX_ByteString ProfileKey(key.GetBuffer(), key.GetSize());
diff --git a/core/src/fxcodec/codec/fx_codec_progress.cpp b/core/src/fxcodec/codec/fx_codec_progress.cpp
index 1b46c4eb22..fbbfaaf0fa 100644
--- a/core/src/fxcodec/codec/fx_codec_progress.cpp
+++ b/core/src/fxcodec/codec/fx_codec_progress.cpp
@@ -1258,7 +1258,8 @@ FXCODEC_STATUS CCodec_ProgressiveDecoder::LoadImageInfo(
case FXCODEC_STATUS_DECODE_READY:
case FXCODEC_STATUS_DECODE_TOBECONTINUE:
return FXCODEC_STATUS_ERROR;
- default:;
+ default:
+ break;
}
if (pFile == NULL) {
m_status = FXCODEC_STATUS_ERR_PARAMS;
@@ -1821,7 +1822,8 @@ FXCODEC_STATUS CCodec_ProgressiveDecoder::GetFrames(int32_t& frames,
return m_status = FXCODEC_STATUS_ERROR;
}
} break;
- default:;
+ default:
+ break;
}
return FXCODEC_STATUS_ERROR;
}
@@ -2219,7 +2221,8 @@ FXCODEC_STATUS CCodec_ProgressiveDecoder::ContinueDecode(IFX_Pause* pPause) {
case FXDIB_Argb:
pFormatBitmap = pClipBitmap;
break;
- default:;
+ default:
+ break;
}
switch (m_pDeviceBitmap->GetFormat()) {
case FXDIB_8bppRgb:
@@ -2257,7 +2260,8 @@ FXCODEC_STATUS CCodec_ProgressiveDecoder::ContinueDecode(IFX_Pause* pPause) {
}
}
} break;
- default:;
+ default:
+ break;
}
if (pClipBitmap != pFormatBitmap) {
delete pClipBitmap;
diff --git a/core/src/fxcodec/lbmp/fx_bmp.cpp b/core/src/fxcodec/lbmp/fx_bmp.cpp
index ec7490fdd1..2a0e227e46 100644
--- a/core/src/fxcodec/lbmp/fx_bmp.cpp
+++ b/core/src/fxcodec/lbmp/fx_bmp.cpp
@@ -955,7 +955,8 @@ FX_BOOL _bmp_encode_image(bmp_compress_struct_p bmp_ptr,
case BMP_RLE4:
_bmp_encode_rle4(bmp_ptr, dst_buf, dst_size);
break;
- default:;
+ default:
+ break;
}
bmp_ptr->file_header.bfSize = dst_size;
WriteFileHeader(&bmp_ptr->file_header, dst_buf);
diff --git a/core/src/fxcodec/lbmp/fx_bmp.h b/core/src/fxcodec/lbmp/fx_bmp.h
index dc90f5f740..063b1bd757 100644
--- a/core/src/fxcodec/lbmp/fx_bmp.h
+++ b/core/src/fxcodec/lbmp/fx_bmp.h
@@ -103,7 +103,8 @@ struct tag_bmp_decompress_struct {
FX_DWORD mask_blue;
#endif
- FX_BOOL (*_bmp_get_data_position_fn)(bmp_decompress_struct_p bmp_ptr, FX_DWORD cur_pos);
+ FX_BOOL (*_bmp_get_data_position_fn)(bmp_decompress_struct_p bmp_ptr,
+ FX_DWORD cur_pos);
void (*_bmp_get_row_fn)(bmp_decompress_struct_p bmp_ptr,
int32_t row_num,
uint8_t* row_buf);
diff --git a/core/src/fxcodec/lgif/fx_gif.h b/core/src/fxcodec/lgif/fx_gif.h
index 2b14115ede..19e21751d6 100644
--- a/core/src/fxcodec/lgif/fx_gif.h
+++ b/core/src/fxcodec/lgif/fx_gif.h
@@ -240,7 +240,8 @@ struct tag_gif_decompress_struct {
void (*_gif_get_row_fn)(gif_decompress_struct_p gif_ptr,
int32_t row_num,
uint8_t* row_buf);
- FX_BOOL (*_gif_get_record_position_fn)(gif_decompress_struct_p gif_ptr, FX_DWORD cur_pos,
+ FX_BOOL (*_gif_get_record_position_fn)(gif_decompress_struct_p gif_ptr,
+ FX_DWORD cur_pos,
int32_t left, int32_t top, int32_t width, int32_t height,
int32_t pal_num, void* pal_ptr,
int32_t delay_time, FX_BOOL user_input,