Song: GetURI() returns std::string

This commit is contained in:
Max Kellermann
2013-10-17 01:01:15 +02:00
parent 67ae033de7
commit be8ceae6e6
10 changed files with 62 additions and 86 deletions

View File

@@ -40,10 +40,8 @@
static void
queue_save_database_song(FILE *fp, int idx, const Song *song)
{
char *uri = song->GetURI();
fprintf(fp, "%i:%s\n", idx, uri);
g_free(uri);
const auto uri = song->GetURI();
fprintf(fp, "%i:%s\n", idx, uri.c_str());
}
static void