tag/Builder: use RemoveAll() to give up references
This commit is contained in:
parent
4b2d9e544c
commit
ba13b4b5d6
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user