diff options
author | Max Kellermann <max@duempel.org> | 2016-03-18 16:21:26 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2016-03-18 16:21:26 +0100 |
commit | 296ee4961ee201d5dbb4180935b93f1c8c586438 (patch) | |
tree | 7708c7eb014005386700148123e788ffe18fb68d /src/sticker/SongSticker.cxx | |
parent | b1becddf11a587b37711667f3e072b223b91b7ef (diff) |
sticker/Song: add _delete() overload with "const char *"
Diffstat (limited to 'src/sticker/SongSticker.cxx')
-rw-r--r-- | src/sticker/SongSticker.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sticker/SongSticker.cxx b/src/sticker/SongSticker.cxx index dddeef9cf..0ccedc249 100644 --- a/src/sticker/SongSticker.cxx +++ b/src/sticker/SongSticker.cxx @@ -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 |