Fix build bustage. See bug 356335 comment 18 for what I forgot to do in the

initial checkin for that bug...  I need a longer-term memory, clearly.  :(
This commit is contained in:
bzbarsky%mit.edu 2006-12-07 02:53:35 +00:00
Родитель 50917c013e
Коммит 66d9ef86aa
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1233,7 +1233,7 @@ PRBool nsCellMap::Grow(nsTableCellMap& aMap,
}
PRInt32 startRowIndex = (aRowIndex >= 0) ? aRowIndex : mRows.Length();
return mRows.InsertSlots(startRowIndex, aNumRows, numCols);
return mRows.InsertElementsAt(startRowIndex, aNumRows, numCols) != nsnull;
}
void nsCellMap::GrowRow(CellDataArray& aRow,
@ -1241,7 +1241,7 @@ void nsCellMap::GrowRow(CellDataArray& aRow,
{
// Have to have the cast to get the template to do the right thing.
aRow.InsertSlots(aRow.Length(), aNumCols, (CellData*)nsnull);
aRow.InsertElementsAt(aRow.Length(), aNumCols, (CellData*)nsnull);
}
void
@ -1756,8 +1756,8 @@ void nsCellMap::ExpandWithCells(nsTableCellMap& aMap,
// Pre-allocate all the cells we'll need in this array, setting
// them to null.
// Have to have the cast to get the template to do the right thing.
if (!row.InsertSlots(aColIndex, endColIndex - aColIndex + 1,
(CellData*)nsnull) &&
if (!row.InsertElementsAt(aColIndex, endColIndex - aColIndex + 1,
(CellData*)nsnull) &&
rowX == aRowIndex) {
// Failed to insert the slots, and this is the very first row. That
// means that we need to clean up |origData| before returning, since