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

Issue 1077083003: Fix the noisiest variable shadowing warnings in pdfium. (Closed)

Created:
5 years, 8 months ago by brucedawson
Modified:
5 years, 8 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix the noisiest variable shadowing warnings in pdfium. Three functions in fx_coordinates.h account for 60% of the warnings when building with VS 2015, due to variable shadowing. Renaming the function parameters is safe, resolves the warnings, and reduces confusion. R=tsepez@chromium.org BUG=440500 Committed: https://pdfium.googlesource.com/pdfium/+/9c7b0940569ee5eb1794e8db4e47ecaf3a64315d

Patch Set 1 #

Total comments: 22

Patch Set 2 : Put statements on separate lines. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M core/include/fxcrt/fx_coordinates.h View 1 2 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
brucedawson
Take a look when Rietveld starts working again? It's a simple patch to reduce the ...
5 years, 8 months ago (2015-04-10 20:15:15 UTC) #1
Tom Sepez
https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h File core/include/fxcrt/fx_coordinates.h (right): https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h#newcode137 core/include/fxcrt/fx_coordinates.h:137: FXT_PSV::x = newx, FXT_PSV::y = newy; Can we get ...
5 years, 8 months ago (2015-04-10 20:36:53 UTC) #2
Tom Sepez
https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h File core/include/fxcrt/fx_coordinates.h (right): https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h#newcode135 core/include/fxcrt/fx_coordinates.h:135: void Set(baseType newx, baseType newy) why do we even ...
5 years, 8 months ago (2015-04-10 21:00:04 UTC) #3
brucedawson
https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h File core/include/fxcrt/fx_coordinates.h (right): https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h#newcode135 core/include/fxcrt/fx_coordinates.h:135: void Set(baseType newx, baseType newy) A quick check shows ...
5 years, 8 months ago (2015-04-10 21:29:51 UTC) #4
Tom Sepez
On 2015/04/10 21:29:51, brucedawson wrote: > https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h > File core/include/fxcrt/fx_coordinates.h (right): > > https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h#newcode135 > ...
5 years, 8 months ago (2015-04-10 21:32:53 UTC) #5
Tom Sepez
For example: https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h File core/include/fxcrt/fx_coordinates.h (right): https://codereview.chromium.org/1077083003/diff/1/core/include/fxcrt/fx_coordinates.h#newcode12 core/include/fxcrt/fx_coordinates.h:12: template<class baseType> class CFX_PSVTemplate; I don't think ...
5 years, 8 months ago (2015-04-10 21:33:05 UTC) #6
brucedawson
Sounds good. Magic four letters needed?
5 years, 8 months ago (2015-04-10 21:34:15 UTC) #7
Tom Sepez
On 2015/04/10 21:34:15, brucedawson wrote: > Sounds good. Magic four letters needed? LGTM
5 years, 8 months ago (2015-04-10 21:40:47 UTC) #8
brucedawson
5 years, 8 months ago (2015-04-10 21:49:41 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
9c7b0940569ee5eb1794e8db4e47ecaf3a64315d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698