summaryrefslogtreecommitdiff
path: root/core/fxcodec/codec
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-06-02 15:48:15 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-02 15:48:16 -0700
commitdb444d2063df6c574882d9263e885c4fe1134133 (patch)
tree27ce4a3f181ae0b5ad4eff6893016e7d49dfce0a /core/fxcodec/codec
parentad700c2c1fc3c3843dae71e5982f462e42efc987 (diff)
downloadpdfium-db444d2063df6c574882d9263e885c4fe1134133.tar.xz
Fix all the code which has duplicate variable declarations
When there are duplicate variable declarations, the inner names shadow the outter ones. This is error prone and harder to read. Remove all the instances found by /analyze. BUG=chromium:613623, chromium:427616 Review-Url: https://codereview.chromium.org/2027273002
Diffstat (limited to 'core/fxcodec/codec')
-rw-r--r--core/fxcodec/codec/fx_codec_fax.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fxcodec/codec/fx_codec_fax.cpp b/core/fxcodec/codec/fx_codec_fax.cpp
index 97b7ee2ad6..59010391c5 100644
--- a/core/fxcodec/codec/fx_codec_fax.cpp
+++ b/core/fxcodec/codec/fx_codec_fax.cpp
@@ -359,16 +359,16 @@ FX_BOOL FaxG4GetRow(const uint8_t* src_buf,
if (bitpos >= bitsize) {
return FALSE;
}
- FX_BOOL bit1 = NEXTBIT;
+ FX_BOOL next_bit1 = NEXTBIT;
if (bitpos >= bitsize) {
return FALSE;
}
- FX_BOOL bit2 = NEXTBIT;
- if (bit1 && bit2) {
+ FX_BOOL next_bit2 = NEXTBIT;
+ if (next_bit1 && next_bit2) {
v_delta = 2;
- } else if (bit1) {
+ } else if (next_bit1) {
v_delta = -2;
- } else if (bit2) {
+ } else if (next_bit2) {
if (bitpos >= bitsize) {
return FALSE;
}