From 01ce2c23bdf919bfb2a1597936157be7367bdecd Mon Sep 17 00:00:00 2001 From: "bmlk%gmx.de" Date: Sat, 20 Dec 2003 11:15:27 +0000 Subject: [PATCH] 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 --- mozilla/layout/html/table/src/FixedTableLayoutStrategy.cpp | 4 ++-- mozilla/layout/tables/FixedTableLayoutStrategy.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/html/table/src/FixedTableLayoutStrategy.cpp b/mozilla/layout/html/table/src/FixedTableLayoutStrategy.cpp index fdce0f7c725..993b8e6808a 100644 --- a/mozilla/layout/html/table/src/FixedTableLayoutStrategy.cpp +++ b/mozilla/layout/html/table/src/FixedTableLayoutStrategy.cpp @@ -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; diff --git a/mozilla/layout/tables/FixedTableLayoutStrategy.cpp b/mozilla/layout/tables/FixedTableLayoutStrategy.cpp index fdce0f7c725..993b8e6808a 100644 --- a/mozilla/layout/tables/FixedTableLayoutStrategy.cpp +++ b/mozilla/layout/tables/FixedTableLayoutStrategy.cpp @@ -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;