Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Issue 2034253003: Fix more code which has shadow variables (Closed)

Created:
4 years, 6 months ago by Wei Li
Modified:
4 years, 6 months ago
Reviewers:
Tom Sepez, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix more code which has shadow variables The code has local variables that shadow struct or class member variables. Also, when this happens, different variable names should be used instead of namespaces. These were discovered by /Wshadow warning flag in Clang. Committed: https://pdfium.googlesource.com/pdfium/+/98963398054a20287cf6b354932ef56ddb4da48c

Patch Set 1 : #

Total comments: 22

Patch Set 2 : address comments and style fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -669 lines) Patch
M core/fxcodec/codec/codec_int.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M core/fxcodec/jbig2/JBig2_GrdProc.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcodec/jbig2/JBig2_GrdProc.cpp View 1 32 chunks +332 lines, -427 lines 0 comments Download
M core/fxcodec/jbig2/JBig2_GrrdProc.cpp View 1 15 chunks +131 lines, -144 lines 0 comments Download
M core/fxcodec/lgif/fx_gif.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fxcrt/fx_basic_coords.cpp View 1 chunk +7 lines, -7 lines 0 comments Download
M core/fxcrt/include/fx_coordinates.h View 4 chunks +68 lines, -53 lines 0 comments Download
M fpdfsdk/fsdk_baseannot.cpp View 2 chunks +7 lines, -7 lines 0 comments Download
M fpdfsdk/javascript/Consts.cpp View 1 chunk +15 lines, -15 lines 0 comments Download
M fpdfsdk/javascript/JS_GlobalData.h View 1 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/JS_GlobalData.cpp View 1 1 chunk +6 lines, -6 lines 0 comments Download
M xfa/fwl/basewidget/fwl_listboximp.cpp View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Wei Li
for review, thanks
4 years, 6 months ago (2016-06-04 00:48:20 UTC) #5
dsinclair
lgtm w/ nits. https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/jbig2/JBig2_GrdProc.cpp File core/fxcodec/jbig2/JBig2_GrdProc.cpp (right): https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/jbig2/JBig2_GrdProc.cpp#newcode21 core/fxcodec/jbig2/JBig2_GrdProc.cpp:21: m_LTP(0) { nit: FALSE https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/jbig2/JBig2_GrdProc.cpp#newcode609 core/fxcodec/jbig2/JBig2_GrdProc.cpp:609: ...
4 years, 6 months ago (2016-06-06 12:50:11 UTC) #6
Tom Sepez
lgtm https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/codec/codec_int.h File core/fxcodec/codec/codec_int.h (right): https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/codec/codec_int.h#newcode27 core/fxcodec/codec/codec_int.h:27: unsigned char* src_data; nit: these should probably be ...
4 years, 6 months ago (2016-06-06 16:43:34 UTC) #7
Wei Li
Thanks for the review, did an overhaul on style fixes. https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/codec/codec_int.h File core/fxcodec/codec/codec_int.h (right): https://codereview.chromium.org/2034253003/diff/20001/core/fxcodec/codec/codec_int.h#newcode27 ...
4 years, 6 months ago (2016-06-07 17:33:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034253003/40001
4 years, 6 months ago (2016-06-07 18:28:15 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 18:28:35 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/98963398054a20287cf6b354932ef56ddb4d...

Powered by Google App Engine
This is Rietveld 408576698