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

@@ -164,7 +164,7 @@ SongFilter::Item::Match(const LightSong &song) const noexcept
return StringMatch(uri.c_str());
}
return Match(*song.tag);
return Match(song.tag);
}
SongFilter::SongFilter(unsigned tag, const char *value, bool fold_case)