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/UpdateDatabase.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/UpdateDatabase.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/UpdateDatabase.cxx b/src/UpdateDatabase.cxx index 984fb1be8..9d2fa9017 100644 --- a/src/UpdateDatabase.cxx +++ b/src/UpdateDatabase.cxx @@ -22,14 +22,14 @@ #include "UpdateRemove.hxx" #include "PlaylistVector.hxx" #include "Directory.hxx" -#include "song.h" +#include "Song.hxx" #include "DatabaseLock.hxx" #include <glib.h> #include <assert.h> void -delete_song(Directory *dir, struct song *del) +delete_song(Directory *dir, Song *del) { assert(del->parent == dir); @@ -42,7 +42,7 @@ delete_song(Directory *dir, struct song *del) update_remove_song(del); /* finally, all possible references gone, free it */ - song_free(del); + del->Free(); db_lock(); } @@ -60,7 +60,7 @@ clear_directory(Directory *directory) directory_for_each_child_safe(child, n, directory) delete_directory(child); - struct song *song, *ns; + Song *song, *ns; directory_for_each_song_safe(song, ns, directory) { assert(song->parent == directory); delete_song(directory, song); @@ -90,7 +90,7 @@ delete_name_in(Directory *parent, const char *name) modified = true; } - struct song *song = parent->FindSong(name); + Song *song = parent->FindSong(name); if (song != NULL) { delete_song(parent, song); modified = true; |