Commit f8c23488 authored by Max Kellermann's avatar Max Kellermann

Song: add method ReplaceTag()

parent 1e2cda92
......@@ -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)
......
......@@ -126,6 +126,8 @@ struct Song {
return parent == &detached_root;
}
void ReplaceTag(Tag &&tag);
bool UpdateFile();
bool UpdateFileInArchive();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment