diff options
author | Cebtenzzre <cebtenzzre@gmail.com> | 2021-06-23 17:39:30 -0400 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-08-05 14:23:48 +0200 |
commit | ba13b4b5d617aa1073051ac73df9e41b42dbbb21 (patch) | |
tree | a12b389cbc3aaff0b61811c767a011317db04133 /src | |
parent | 4b2d9e544c168c0c876e366e806416df31dc8607 (diff) |
tag/Builder: use RemoveAll() to give up references
Diffstat (limited to 'src')
-rw-r--r-- | src/tag/Builder.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |