aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateRemove.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 01:01:15 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 01:01:15 +0200
commitbe8ceae6e6c2836233dd8acedd829b18943f820a (patch)
treef625c58523ccee5c27c082c49e15c2d142d836fb /src/UpdateRemove.cxx
parent67ae033de7e769067035f76c992e21d3616bf3fe (diff)
downloadmpd-be8ceae6e6c2836233dd8acedd829b18943f820a.tar.gz
mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.tar.xz
mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.zip
Song: GetURI() returns std::string
Diffstat (limited to 'src/UpdateRemove.cxx')
-rw-r--r--src/UpdateRemove.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx
index d43ad92c7..6bccdafcc 100644
--- a/src/UpdateRemove.cxx
+++ b/src/UpdateRemove.cxx
@@ -50,13 +50,12 @@ static Cond remove_cond;
static void
song_remove_event(void)
{
- char *uri;
-
assert(removed_song != NULL);
- uri = removed_song->GetURI();
- FormatInfo(update_domain, "removing %s", uri);
- g_free(uri);
+ {
+ const auto uri = removed_song->GetURI();
+ FormatInfo(update_domain, "removing %s", uri.c_str());
+ }
#ifdef ENABLE_SQLITE
/* if the song has a sticker, remove it */