Simplify reassembly code using DataBlockList::LastBlock()

This commit is contained in:
Jon Siwek 2019-09-24 10:23:24 -07:00
parent 5ce68bd20a
commit 1253a61340
5 changed files with 15 additions and 6 deletions

View file

@ -205,7 +205,7 @@ void FragReassembler::BlockInserted(DataBlockMap::const_iterator /* it */)
++next;
}
const auto& last = std::prev(block_list.End())->second;
const auto& last = block_list.LastBlock();
if ( next != block_list.End() )
{