Commit 296ee496 authored by Max Kellermann's avatar Max Kellermann

sticker/Song: add _delete() overload with "const char *"

parent b1becddf
......@@ -45,10 +45,15 @@ sticker_song_set_value(const LightSong &song,
}
bool
sticker_song_delete(const char *uri, Error &error)
{
return sticker_delete("song", uri, error);
}
bool
sticker_song_delete(const LightSong &song, Error &error)
{
const auto uri = song.GetURI();
return sticker_delete("song", uri.c_str(), error);
return sticker_song_delete(song.GetURI().c_str(), error);
}
bool
......
......@@ -51,6 +51,9 @@ sticker_song_set_value(const LightSong &song,
* Deletes a sticker from the database. All values are deleted.
*/
bool
sticker_song_delete(const char *uri, Error &error);
bool
sticker_song_delete(const LightSong &song, Error &error);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment