SongPrint: let CPP concatenate string literals

This commit is contained in:
Max Kellermann 2015-02-06 13:06:38 +01:00
parent 25ebb427da
commit a62fe30546

View File

@ -52,14 +52,14 @@ song_print_uri(Client &client, const char *uri, bool base)
uri = allocated.c_str(); uri = allocated.c_str();
} }
client_printf(client, "%s%s\n", SONG_FILE, uri); client_printf(client, SONG_FILE "%s\n", uri);
} }
void void
song_print_uri(Client &client, const LightSong &song, bool base) song_print_uri(Client &client, const LightSong &song, bool base)
{ {
if (!base && song.directory != nullptr) { if (!base && song.directory != nullptr) {
client_printf(client, "%s%s/%s\n", SONG_FILE, client_printf(client, SONG_FILE "%s/%s\n",
song.directory, song.uri); song.directory, song.uri);
} else } else
song_print_uri(client, song.uri, base); song_print_uri(client, song.uri, base);