making RefreshRowRange const.

This commit is contained in:
pinkerton%netscape.com 1998-09-01 20:19:34 +00:00
parent 9fbe675be5
commit 3fc74a90ab
2 changed files with 6 additions and 3 deletions

View File

@ -1502,7 +1502,7 @@ void CStandardFlexTable::DontBeTarget()
// ===== BEGINCEXTable Refugees
//----------------------------------------------------------------------------------------
void CStandardFlexTable::RefreshRowRange(TableIndexT inStartRow, TableIndexT inEndRow)
void CStandardFlexTable::RefreshRowRange(TableIndexT inStartRow, TableIndexT inEndRow) const
//----------------------------------------------------------------------------------------
{
TableIndexT topRow, botRow;
@ -1511,7 +1511,10 @@ void CStandardFlexTable::RefreshRowRange(TableIndexT inStartRow, TableIndexT inE
} else {
topRow = inEndRow; botRow = inStartRow;
}
RefreshCellRange(STableCell(topRow, 1), STableCell(botRow, mCols));
// RefreshCellRange should be const, but isn't
CStandardFlexTable* self = const_cast<CStandardFlexTable*>(this);
self->RefreshCellRange(STableCell(topRow, 1), STableCell(botRow, mCols));
}
//----------------------------------------------------------------------------------------

View File

@ -178,7 +178,7 @@ public:
ScrollCellIntoFrame(inCell);
}
void RefreshRowRange(TableIndexT inStartRow, TableIndexT inEndRow);
void RefreshRowRange(TableIndexT inStartRow, TableIndexT inEndRow) const;
void ReadSavedTableStatus(LStream *inStatusData);
void WriteSavedTableStatus(LStream *outStatusData);