diff options
author | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-28 13:25:12 +0200 |
commit | ba161ec572b98d3bcf9f735ff122133319fe896a (patch) | |
tree | a211690e3a8b7fce1fb6db540228122bead1f2bc /src/PlaylistSave.cxx | |
parent | 43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff) | |
download | mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip |
song: convert header to C++
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistSave.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 473713d5d..b259b1f3d 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -21,7 +21,7 @@ #include "PlaylistSave.hxx" #include "PlaylistFile.hxx" #include "Playlist.hxx" -#include "song.h" +#include "Song.hxx" #include "Mapper.hxx" #include "Idle.hxx" #include "fs/Path.hxx" @@ -31,14 +31,14 @@ #include <glib.h> void -playlist_print_song(FILE *file, const struct song *song) +playlist_print_song(FILE *file, const Song *song) { - if (playlist_saveAbsolutePaths && song_in_database(song)) { + if (playlist_saveAbsolutePaths && song->IsInDatabase()) { const Path path = map_song_fs(song); if (!path.IsNull()) fprintf(file, "%s\n", path.c_str()); } else { - char *uri = song_get_uri(song); + char *uri = song->GetURI(); const Path uri_fs = Path::FromUTF8(uri); g_free(uri); |