db/LightSong: make Tag a reference

This enforces the "not nullptr" rule.
This commit is contained in:
Max Kellermann
2018-07-06 16:43:11 +02:00
parent ebc006ab52
commit b9ff6383a4
13 changed files with 23 additions and 26 deletions

View File

@@ -98,12 +98,11 @@ Song::GetURI() const noexcept
LightSong
Song::Export() const noexcept
{
LightSong dest;
LightSong dest(tag);
dest.directory = parent->IsRoot()
? nullptr : parent->GetPath();
dest.uri = uri;
dest.real_uri = nullptr;
dest.tag = &tag;
dest.mtime = mtime;
dest.start_time = start_time;
dest.end_time = end_time;