Nuke some more warnings

This commit is contained in:
kipp%netscape.com 1999-10-15 21:18:32 +00:00
parent ef8d06d258
commit 5b80d4a004
4 changed files with 10 additions and 10 deletions

View File

@ -583,7 +583,7 @@ PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nscoord aMaxWidth
// so that nested and/or overlaping col spans handle the inner ones first,
// ensuring more accurated calculations.
for (colX = mNumCols - 1; colX >= 0; colX--) {
for (PRInt32 rowX = 0; rowX < numRows; rowX++) {
for (rowX = 0; rowX < numRows; rowX++) {
PRBool originates;
PRInt32 colSpan;
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
@ -983,7 +983,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
for (rowX = 0; rowX < numRows; rowX++) {
PRBool originates;
PRInt32 colSpan;
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
if (!originates || (1 == colSpan)) {
continue;
}
@ -1021,7 +1021,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
continue;
}
PRBool cellSpansPercent = PR_FALSE;
PRInt32 spanX;
// see if any of the spanned cols are percent based
for (spanX = 0; spanX < colSpan; spanX++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
@ -1036,7 +1036,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
nscoord spanTotal = 0;
nscoord divisor = 0;
nscoord spanCellSpacing = 0;
PRInt32 spanX;
for (spanX = 0; spanX < colSpan; spanX++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
nscoord colWidth = colFrame->GetWidth(MIN_CON);

View File

@ -28,8 +28,8 @@
nsTableColFrame::nsTableColFrame()
: nsFrame(),
mIsAnonymous(PR_FALSE),
mProportion(WIDTH_NOT_SET),
mIsAnonymous(PR_FALSE),
mNonPercentSpansPercent(PR_FALSE)
{
// note that all fields are initialized to 0 by nsFrame::operator new

View File

@ -583,7 +583,7 @@ PRBool BasicTableLayoutStrategy::AssignPreliminaryColumnWidths(nscoord aMaxWidth
// so that nested and/or overlaping col spans handle the inner ones first,
// ensuring more accurated calculations.
for (colX = mNumCols - 1; colX >= 0; colX--) {
for (PRInt32 rowX = 0; rowX < numRows; rowX++) {
for (rowX = 0; rowX < numRows; rowX++) {
PRBool originates;
PRInt32 colSpan;
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
@ -983,7 +983,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
for (rowX = 0; rowX < numRows; rowX++) {
PRBool originates;
PRInt32 colSpan;
nsTableCellFrame* cellFrame = mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
mTableFrame->GetCellInfoAt(rowX, colX, &originates, &colSpan);
if (!originates || (1 == colSpan)) {
continue;
}
@ -1021,7 +1021,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
continue;
}
PRBool cellSpansPercent = PR_FALSE;
PRInt32 spanX;
// see if any of the spanned cols are percent based
for (spanX = 0; spanX < colSpan; spanX++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
@ -1036,7 +1036,7 @@ PRBool BasicTableLayoutStrategy::RecomputeAdjMinIfNecessary()
nscoord spanTotal = 0;
nscoord divisor = 0;
nscoord spanCellSpacing = 0;
PRInt32 spanX;
for (spanX = 0; spanX < colSpan; spanX++) {
nsTableColFrame* colFrame = mTableFrame->GetColFrame(colX + spanX);
nscoord colWidth = colFrame->GetWidth(MIN_CON);

View File

@ -28,8 +28,8 @@
nsTableColFrame::nsTableColFrame()
: nsFrame(),
mIsAnonymous(PR_FALSE),
mProportion(WIDTH_NOT_SET),
mIsAnonymous(PR_FALSE),
mNonPercentSpansPercent(PR_FALSE)
{
// note that all fields are initialized to 0 by nsFrame::operator new