playlist: deleteASongFromPlaylist takes a const Song *
We don't change the song pointer there, either.
This commit is contained in:
parent
554f4a9fb9
commit
9819890f1d
@ -775,7 +775,7 @@ enum playlist_result deleteFromPlaylistById(int id)
|
|||||||
return deleteFromPlaylist(song);
|
return deleteFromPlaylist(song);
|
||||||
}
|
}
|
||||||
|
|
||||||
void deleteASongFromPlaylist(Song * song)
|
void deleteASongFromPlaylist(const Song * song)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -101,7 +101,7 @@ enum playlist_result savePlaylist(const char *utf8file);
|
|||||||
|
|
||||||
enum playlist_result deletePlaylist(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);
|
enum playlist_result moveSongInPlaylist(int from, int to);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user