mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 18:31:08 +00:00
making RefreshRowRange const.
This commit is contained in:
parent
9fbe675be5
commit
3fc74a90ab
@ -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));
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user