summaryrefslogtreecommitdiff
path: root/src/sticker
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-03-18 16:21:26 +0100
committerMax Kellermann <max@duempel.org>2016-03-18 16:21:26 +0100
commit296ee4961ee201d5dbb4180935b93f1c8c586438 (patch)
tree7708c7eb014005386700148123e788ffe18fb68d /src/sticker
parentb1becddf11a587b37711667f3e072b223b91b7ef (diff)
sticker/Song: add _delete() overload with "const char *"
Diffstat (limited to 'src/sticker')
-rw-r--r--src/sticker/SongSticker.cxx9
-rw-r--r--src/sticker/SongSticker.hxx3
2 files changed, 10 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
diff --git a/src/sticker/SongSticker.hxx b/src/sticker/SongSticker.hxx
index e9169213a..e2a2d10a4 100644
--- a/src/sticker/SongSticker.hxx
+++ b/src/sticker/SongSticker.hxx
@@ -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);
/**