diff options
Diffstat (limited to '')
-rw-r--r-- | src/Song.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Song.cxx b/src/Song.cxx index 7a11a0611..86a5b4672 100644 --- a/src/Song.cxx +++ b/src/Song.cxx @@ -109,6 +109,14 @@ Song::Free() g_free(this); } +void +Song::ReplaceTag(Tag &&_tag) +{ + if (tag == nullptr) + tag = new Tag(); + *tag = std::move(_tag); +} + gcc_pure static inline bool directory_equals(const Directory &a, const Directory &b) |