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:
Sylvestre Ledru 2017-08-03 12:06:35 +02:00
parent 1441227f14
commit b68c15fce4

View File

@ -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;