sticker/Song: add _delete() overload with "const char *"
This commit is contained in:
parent
b1becddf11
commit
296ee4961e
|
@ -44,11 +44,16 @@ sticker_song_set_value(const LightSong &song,
|
|||
return sticker_store_value("song", uri.c_str(), name, value, error);
|
||||
}
|
||||
|
||||
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
|
||||
|
|
|
@ -50,6 +50,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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue