tag/Builder: use RemoveAll() to give up references

This commit is contained in:
Cebtenzzre 2021-06-23 17:39:30 -04:00 committed by Max Kellermann
parent 4b2d9e544c
commit ba13b4b5d6

View File

@ -92,7 +92,7 @@ TagBuilder::operator=(Tag &&other) noexcept
/* move all TagItem pointers from the Tag object; we don't
need to contact the tag pool, because all we do is move
references */
items.clear();
RemoveAll();
items.reserve(other.num_items);
std::copy_n(other.items, other.num_items, std::back_inserter(items));