Codechange: Emplace std::pair into vectors.
This creates the pair in the vector, instead of creating it then copying it in.
This commit is contained in:
committed by
Peter Nelson
parent
ed2db80990
commit
40fa45a76a
@@ -293,7 +293,7 @@ private:
|
||||
for (uint i = 0; i != elements.size(); i++) {
|
||||
auto *lte = elements[i];
|
||||
if (i > 0 && elements[i - 1]->rating != lte->rating) rank = i;
|
||||
this->rows.emplace_back(std::make_pair(rank, lte));
|
||||
this->rows.emplace_back(rank, lte);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user