From ba13b4b5d617aa1073051ac73df9e41b42dbbb21 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Wed, 23 Jun 2021 17:39:30 -0400 Subject: [PATCH] tag/Builder: use RemoveAll() to give up references --- src/tag/Builder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag/Builder.cxx b/src/tag/Builder.cxx index 5a60a6e78..3f265f5e2 100644 --- a/src/tag/Builder.cxx +++ b/src/tag/Builder.cxx @@ -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));