diff options
author | Max Kellermann <max@duempel.org> | 2016-02-23 20:59:23 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-02-23 20:59:44 +0100 |
commit | e1d7a5cbf51a1a7f54a9a36c736bcf52e6947579 (patch) | |
tree | cf5237961e0b10a99f59091413654c98f2b9d244 /src | |
parent | f3cefaf043562b85c79a493d8af70e852d9e694f (diff) |
DetachedSong: add method MoveTagItemsFrom()
Diffstat (limited to 'src')
-rw-r--r-- | src/DetachedSong.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DetachedSong.hxx b/src/DetachedSong.hxx index 021b5de29..0d1393fbf 100644 --- a/src/DetachedSong.hxx +++ b/src/DetachedSong.hxx @@ -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; } |