Address PR feedback.

This commit is contained in:
Brian Phlipot
2022-12-23 12:34:02 -07:00
committed by teejusb
parent 4a6b1a743c
commit d079940fea
44 changed files with 259 additions and 236 deletions
+1 -1
View File
@@ -575,7 +575,7 @@ void SongManager::UnlistSong(Song *song)
// remove all occurences of the song in each of our song vectors
std::vector<Song*>* songVectors[3] = { &m_pSongs, &m_pPopularSongs, &m_pShuffledSongs };
for (int songVecIdx=0; songVecIdx<3; ++songVecIdx) {
auto& v = *songVectors[songVecIdx];
std::vector<Song*>& v = *songVectors[songVecIdx];
std::erase_if( v, [song](Song* vSong){return vSong == song;} );
}
}