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:
parent
9081f2e62c
commit
01ce2c23bd
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user