From e1d7a5cbf51a1a7f54a9a36c736bcf52e6947579 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 23 Feb 2016 20:59:23 +0100 Subject: DetachedSong: add method MoveTagItemsFrom() --- src/DetachedSong.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/DetachedSong.hxx') 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; } -- cgit v1.2.3