Bug 59675: Initialize variables before use (fix compiler warnings), r=nisheeth@netscape.com, sr=jst@netscape.com

This commit is contained in:
pollmann%netscape.com 2001-04-11 07:56:13 +00:00
parent 7525d6e00f
commit 785acd84b7
2 changed files with 24 additions and 24 deletions

View File

@ -971,18 +971,18 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext* aPresContext,
CalculateRowCol(aPresContext, height, mNumRows, mRowSpecs, mRowSizes);
}
PRBool* verBordersVis; // vertical borders visibility
nsHTMLFramesetBorderFrame** verBorders; // vertical borders
nscolor* verBorderColors;
PRBool* horBordersVis; // horizontal borders visibility
nsHTMLFramesetBorderFrame** horBorders; // horizontal borders
nscolor* horBorderColors;
PRInt32* childTypes; // frameset/frame distinction of children
nsFrameborder* childFrameborder; // the frameborder attr of children
nsFrameborder frameborder;
frameborder = GetFrameBorder(PR_FALSE);
nsBorderColor* childBorderColors;
nscolor borderColor;
nsHTMLFramesetBorderFrame** verBorders = nsnull; // vertical borders
nsHTMLFramesetBorderFrame** horBorders = nsnull; // horizontal borders
PRBool* verBordersVis = nsnull; // vertical borders visibility
nscolor* verBorderColors = nsnull;
PRBool* horBordersVis = nsnull; // horizontal borders visibility
nscolor* horBorderColors = nsnull;
PRInt32* childTypes = nsnull; // frameset/frame distinction of children
nsFrameborder* childFrameborder = nsnull; // the frameborder attr of children
nsBorderColor* childBorderColors = nsnull;
nscolor borderColor = NO_COLOR;
nsFrameborder frameborder = GetFrameBorder(PR_FALSE);
if (firstTime) {
verBorders = new nsHTMLFramesetBorderFrame*[mNumCols]; // 1 more than number of ver borders
verBordersVis = new PRBool[mNumCols];

View File

@ -971,18 +971,18 @@ nsHTMLFramesetFrame::Reflow(nsIPresContext* aPresContext,
CalculateRowCol(aPresContext, height, mNumRows, mRowSpecs, mRowSizes);
}
PRBool* verBordersVis; // vertical borders visibility
nsHTMLFramesetBorderFrame** verBorders; // vertical borders
nscolor* verBorderColors;
PRBool* horBordersVis; // horizontal borders visibility
nsHTMLFramesetBorderFrame** horBorders; // horizontal borders
nscolor* horBorderColors;
PRInt32* childTypes; // frameset/frame distinction of children
nsFrameborder* childFrameborder; // the frameborder attr of children
nsFrameborder frameborder;
frameborder = GetFrameBorder(PR_FALSE);
nsBorderColor* childBorderColors;
nscolor borderColor;
nsHTMLFramesetBorderFrame** verBorders = nsnull; // vertical borders
nsHTMLFramesetBorderFrame** horBorders = nsnull; // horizontal borders
PRBool* verBordersVis = nsnull; // vertical borders visibility
nscolor* verBorderColors = nsnull;
PRBool* horBordersVis = nsnull; // horizontal borders visibility
nscolor* horBorderColors = nsnull;
PRInt32* childTypes = nsnull; // frameset/frame distinction of children
nsFrameborder* childFrameborder = nsnull; // the frameborder attr of children
nsBorderColor* childBorderColors = nsnull;
nscolor borderColor = NO_COLOR;
nsFrameborder frameborder = GetFrameBorder(PR_FALSE);
if (firstTime) {
verBorders = new nsHTMLFramesetBorderFrame*[mNumCols]; // 1 more than number of ver borders
verBordersVis = new PRBool[mNumCols];