remove bogus array handling code bug 226757 r/sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@150560 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bmlk%gmx.de 2003-12-20 11:15:27 +00:00
parent 9081f2e62c
commit 01ce2c23bd
2 changed files with 4 additions and 4 deletions

View File

@ -95,11 +95,11 @@ FixedTableLayoutStrategy::AssignNonPctColumnWidths(nsIPresContext* aPre
PRInt32 specifiedCols = 0; // the number of columns whose width is given
nscoord totalColWidth = 0; // the sum of the widths of the columns
nscoord* colWidths = new PRBool[numCols];
nscoord* colWidths = new nscoord[numCols];
if (!colWidths) return PR_FALSE;
memset(colWidths, WIDTH_NOT_SET, numCols*sizeof(nscoord));
nscoord* propInfo = new PRBool[numCols];
nscoord* propInfo = new nscoord[numCols];
if (!propInfo) {
delete [] colWidths;
return PR_FALSE;

View File

@ -95,11 +95,11 @@ FixedTableLayoutStrategy::AssignNonPctColumnWidths(nsIPresContext* aPre
PRInt32 specifiedCols = 0; // the number of columns whose width is given
nscoord totalColWidth = 0; // the sum of the widths of the columns
nscoord* colWidths = new PRBool[numCols];
nscoord* colWidths = new nscoord[numCols];
if (!colWidths) return PR_FALSE;
memset(colWidths, WIDTH_NOT_SET, numCols*sizeof(nscoord));
nscoord* propInfo = new PRBool[numCols];
nscoord* propInfo = new nscoord[numCols];
if (!propInfo) {
delete [] colWidths;
return PR_FALSE;