summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-23 20:59:23 +0100
committerMax Kellermann <max@duempel.org>2016-02-23 20:59:44 +0100
commite1d7a5cbf51a1a7f54a9a36c736bcf52e6947579 (patch)
treecf5237961e0b10a99f59091413654c98f2b9d244 /src
parentf3cefaf043562b85c79a493d8af70e852d9e694f (diff)
DetachedSong: add method MoveTagItemsFrom()
Diffstat (limited to 'src')
-rw-r--r--src/DetachedSong.hxx8
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;
}