Commit ba13b4b5 authored by Cebtenzzre's avatar Cebtenzzre Committed by Max Kellermann

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

parent 4b2d9e54
...@@ -92,7 +92,7 @@ TagBuilder::operator=(Tag &&other) noexcept ...@@ -92,7 +92,7 @@ TagBuilder::operator=(Tag &&other) noexcept
/* move all TagItem pointers from the Tag object; we don't /* move all TagItem pointers from the Tag object; we don't
need to contact the tag pool, because all we do is move need to contact the tag pool, because all we do is move
references */ references */
items.clear(); RemoveAll();
items.reserve(other.num_items); items.reserve(other.num_items);
std::copy_n(other.items, other.num_items, std::back_inserter(items)); std::copy_n(other.items, other.num_items, std::back_inserter(items));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment