DetachedSong: add method MoveTagItemsFrom()

This commit is contained in:
Max Kellermann 2016-02-23 20:59:23 +01:00
parent f3cefaf043
commit e1d7a5cbf5
1 changed files with 8 additions and 0 deletions

View File

@ -188,6 +188,14 @@ public:
tag = std::move(other.tag);
}
/**
* Similar to the MoveTagFrom(), but move only the #TagItem
* array.
*/
void MoveTagItemsFrom(DetachedSong &&other) {
tag.MoveItemsFrom(std::move(other.tag));
}
time_t GetLastModified() const {
return mtime;
}