aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateArchive.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-07-28 13:25:12 +0200
committerMax Kellermann <max@duempel.org>2013-07-28 13:25:12 +0200
commitba161ec572b98d3bcf9f735ff122133319fe896a (patch)
treea211690e3a8b7fce1fb6db540228122bead1f2bc /src/UpdateArchive.cxx
parent43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff)
downloadmpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip
song: convert header to C++
Diffstat (limited to 'src/UpdateArchive.cxx')
-rw-r--r--src/UpdateArchive.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/UpdateArchive.cxx b/src/UpdateArchive.cxx
index 133dfd476..ab174fa53 100644
--- a/src/UpdateArchive.cxx
+++ b/src/UpdateArchive.cxx
@@ -22,7 +22,7 @@
#include "UpdateInternal.hxx"
#include "DatabaseLock.hxx"
#include "Directory.hxx"
-#include "song.h"
+#include "Song.hxx"
#include "Mapper.hxx"
#include "fs/Path.hxx"
#include "ArchiveList.hxx"
@@ -58,10 +58,10 @@ update_archive_tree(Directory *directory, const char *name)
//add file
db_lock();
- struct song *song = directory->FindSong(name);
+ Song *song = directory->FindSong(name);
db_unlock();
if (song == NULL) {
- song = song_file_load(name, directory);
+ song = Song::LoadFile(name, directory);
if (song != NULL) {
db_lock();
directory->AddSong(song);