diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 01:01:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 01:01:15 +0200 |
commit | be8ceae6e6c2836233dd8acedd829b18943f820a (patch) | |
tree | f625c58523ccee5c27c082c49e15c2d142d836fb /src/UpdateRemove.cxx | |
parent | 67ae033de7e769067035f76c992e21d3616bf3fe (diff) | |
download | mpd-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.cxx | 9 |
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 */ |