Closed
Bug 287097
Opened 19 years ago
Closed 19 years ago
fix PreFast warnings in layout/tables.
Categories
(Core :: Layout: Tables, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bernd_mozilla, Assigned: bernd_mozilla)
References
Details
Attachments
(2 files)
922 bytes,
application/octet-stream
|
Details | |
8.24 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
for PreFast see http://www.microsoft.com/whdc/devtools/tools/PREfast.mspx e:\moz_src\mozilla\layout\tables\basictablelayoutstrategy.cpp (1450): warning 246: Local declaration of 'borderPadding' hides declaration of the same name in an outer scope: see previous declaration at line 1385 of e:\moz_src\mozilla\layout\tables\basictablelayoutstrategy.cpp. FUNCTION: BasicTableLayoutStrategy::AssignPctColumnWidths (1361) PATH: 1385 e:\moz_src\mozilla\layout\tables\basictablelayoutstrategy.cpp (1514): warning 246: Local declaration of 'colX' hides declaration of the same name in an outer scope: see previous declaration at line 1374 of e:\moz_src\mozilla\layout\tables\basictablelayoutstrategy.cpp. FUNCTION: BasicTableLayoutStrategy::AssignPctColumnWidths (1361) PATH: 1374 e:\moz_src\mozilla\layout\tables\basictablelayoutstrategy.cpp (1540): warning 246: Local declaration of 'borderPadding' hides declaration of the same name in an outer scope: see previous declaration at line 1385 of e:\moz_src\mozilla\layout\tables\basictablelayoutstrategy.cpp. FUNCTION: BasicTableLayoutStrategy::AssignPctColumnWidths (1361) PATH: 1385 e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp (1500): warning 246: Local declaration of 'availWidth' hides declaration of the same name in an outer scope: see previous declaration at line 1450 of e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp. FUNCTION: nsTableOuterFrame::IR_TargetIsCaptionFrame (1436) PATH: 1450 e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp (1693): warning 246: Local declaration of 'availWidth' hides declaration of the same name in an outer scope: see previous declaration at line 1663 of e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp. FUNCTION: nsTableOuterFrame::IR_InnerTableReflow (1632) PATH: 1663 e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp (1798): warning 246: Local declaration of 'availWidth' hides declaration of the same name in an outer scope: see previous declaration at line 1776 of e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp. FUNCTION: nsTableOuterFrame::IR_CaptionInserted (1763) PATH: 1776 e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp (1984): warning 246: Local declaration of 'availWidth' hides declaration of the same name in an outer scope: see previous declaration at line 1968 of e:\moz_src\mozilla\layout\tables\nstableouterframe.cpp. FUNCTION: nsTableOuterFrame::Reflow (1886) PATH: 1968
Assignee: nobody → bernd_mozilla
Status: NEW → ASSIGNED
Attachment #178142 -
Flags: superreview?(bzbarsky)
Attachment #178142 -
Flags: review?(bzbarsky)
Comment 3•19 years ago
|
||
Comment on attachment 178142 [details] [diff] [review] patch >Index: nsTableOuterFrame.cpp >@@ -1492,17 +1492,17 @@ >+ availWidth = GetInnerTableAvailWidth(aPresContext, mInnerTableFrame, aOuterRS, > &capMin, innerMargin, innerPadding); Fix indent, and perhaps use a different variable name in this scope? >@@ -1685,18 +1685,18 @@ >+ availWidth = GetCaptionAvailWidth(aPresContext, mCaptionFrame, aOuterRS, captionMargin, Again, I think better to use a different name in the nested scope. >@@ -1790,17 +1790,17 @@ >+ availWidth = GetInnerTableAvailWidth(aPresContext, mInnerTableFrame, aOuterRS, > &capMin, innerMargin, innerPadding); Same here (and fix indent). r+sr=bzbarsky with those fixed.
Attachment #178142 -
Flags: superreview?(bzbarsky)
Attachment #178142 -
Flags: superreview+
Attachment #178142 -
Flags: review?(bzbarsky)
Attachment #178142 -
Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•