mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 08:42:13 +00:00
Bug 1387002 - Replace .size() by .empty() when applicable in layout/tables/ r=kats
MozReview-Commit-ID: 2O9BJcQSRIY --HG-- extra : rebase_source : 1e406bc767116999a80325c9daff2e9a640437a7
This commit is contained in:
parent
1441227f14
commit
b68c15fce4
@ -972,7 +972,7 @@ nsTableFrame::InsertRows(nsTableRowGroupFrame* aRowGroupFrame,
|
||||
void
|
||||
nsTableFrame::AddDeletedRowIndex(int32_t aDeletedRowStoredIndex)
|
||||
{
|
||||
if (mDeletedRowIndexRanges.size() == 0) {
|
||||
if (mDeletedRowIndexRanges.empty()) {
|
||||
mDeletedRowIndexRanges.insert(std::pair<int32_t, int32_t>
|
||||
(aDeletedRowStoredIndex,
|
||||
aDeletedRowStoredIndex));
|
||||
@ -1044,7 +1044,7 @@ nsTableFrame::AddDeletedRowIndex(int32_t aDeletedRowStoredIndex)
|
||||
int32_t
|
||||
nsTableFrame::GetAdjustmentForStoredIndex(int32_t aStoredIndex)
|
||||
{
|
||||
if (mDeletedRowIndexRanges.size() == 0)
|
||||
if (mDeletedRowIndexRanges.empty())
|
||||
return 0;
|
||||
|
||||
int32_t adjustment = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user