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

@@ -203,11 +203,11 @@ Copy(TagBuilder &tag, TagType d_tag,
}
ProxySong::ProxySong(const mpd_song *song)
:LightSong(tag2)
{
directory = nullptr;
uri = mpd_song_get_uri(song);
real_uri = nullptr;
tag = &tag2;
const auto _mtime = mpd_song_get_last_modified(song);
mtime = _mtime > 0