TagBuilder: reserve items in move constructor
This commit is contained in:
parent
5e0c272061
commit
424f478c3f
@ -46,6 +46,7 @@ TagBuilder::TagBuilder(Tag &&other)
|
||||
/* 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.reserve(other.num_items);
|
||||
std::copy_n(other.items, other.num_items, std::back_inserter(items));
|
||||
|
||||
/* discard the pointers from the Tag object */
|
||||
|
Loading…
Reference in New Issue
Block a user