Bug 96108: Inline ElementAt(), add SafeElementAt(), voidarray usage fixes,

assertions for bad voidarray indexes.  r=jst, sr=waterson
This commit is contained in:
rjesup@wgate.com
2001-12-21 01:10:07 +00:00
parent 8351054a0a
commit 33e3e06f9e
65 changed files with 1058 additions and 625 deletions

View File

@@ -2606,7 +2606,7 @@ nsTableFrame::RemoveFrame(nsIPresContext* aPresContext,
// remove the cols from the table
PRInt32 colX;
for (colX = lastColIndex; colX >= firstColIndex; colX--) {
nsTableColFrame* colFrame = (nsTableColFrame*)mColFrames.ElementAt(colX);
nsTableColFrame* colFrame = (nsTableColFrame*)mColFrames.SafeElementAt(colX);
if (colFrame) {
RemoveCol(*aPresContext, colGroup, colX, PR_TRUE, PR_FALSE);
}