playlist: deleteASongFromPlaylist takes a const Song *

We don't change the song pointer there, either.
This commit is contained in:
Eric Wong 2008-09-29 13:17:37 +02:00 committed by Max Kellermann
parent 554f4a9fb9
commit 9819890f1d
2 changed files with 2 additions and 2 deletions

View File

@ -775,7 +775,7 @@ enum playlist_result deleteFromPlaylistById(int id)
return deleteFromPlaylist(song);
}
void deleteASongFromPlaylist(Song * song)
void deleteASongFromPlaylist(const Song * song)
{
int i;

View File

@ -101,7 +101,7 @@ enum playlist_result savePlaylist(const char *utf8file);
enum playlist_result deletePlaylist(const char *utf8file);
void deleteASongFromPlaylist(Song * song);
void deleteASongFromPlaylist(const Song * song);
enum playlist_result moveSongInPlaylist(int from, int to);