*: use references instead of pointers
This commit is contained in:
@@ -324,7 +324,7 @@ playlist::DeleteSong(struct player_control &pc, const struct Song &song)
|
||||
{
|
||||
for (int i = queue.GetLength() - 1; i >= 0; --i)
|
||||
// TODO: compare URI instead of pointer
|
||||
if (&song == queue.Get(i))
|
||||
if (&song == &queue.Get(i))
|
||||
DeletePosition(pc, i);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user