aboutsummaryrefslogtreecommitdiffstats
path: root/src/OtherCommands.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/OtherCommands.cxx
parent43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff)
downloadmpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip
song: convert header to C++
Diffstat (limited to '')
-rw-r--r--src/OtherCommands.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/OtherCommands.cxx b/src/OtherCommands.cxx
index 7f592ee9f..0137cfd57 100644
--- a/src/OtherCommands.cxx
+++ b/src/OtherCommands.cxx
@@ -23,7 +23,7 @@
#include "CommandError.hxx"
#include "UpdateGlue.hxx"
#include "Directory.hxx"
-#include "song.h"
+#include "Song.hxx"
#include "SongPrint.hxx"
#include "TagPrint.hxx"
#include "TimePrint.hxx"
@@ -130,7 +130,7 @@ handle_lsinfo(Client *client, int argc, char *argv[])
if (!client_allow_file(client, path_fs, &error))
return print_error(client, error);
- struct song *song = song_file_load(path_utf8, NULL);
+ Song *song = Song::LoadFile(path_utf8, nullptr);
if (song == NULL) {
command_error(client, ACK_ERROR_NO_EXIST,
"No such file");
@@ -138,7 +138,7 @@ handle_lsinfo(Client *client, int argc, char *argv[])
}
song_print_info(client, song);
- song_free(song);
+ song->Free();
return COMMAND_RETURN_OK;
}