const reference conversion

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2021-11-13 17:27:27 -08:00
parent d53d85bd79
commit e03f82636a
4 changed files with 4 additions and 4 deletions

View File

@@ -316,7 +316,7 @@ SimpleDatabase::Visit(const DatabaseSelection &selection,
if (r.rest.find('/') == std::string_view::npos) {
if (visit_song) {
Song *song = r.directory->FindSong(r.rest);
const Song *song = r.directory->FindSong(r.rest);
if (song != nullptr) {
const auto song2 = song->Export();
if (selection.Match(song2))