aboutsummaryrefslogtreecommitdiffstats
path: root/src/cue/CueParser.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/cue/CueParser.cxx
parent43f613d9be9aa2953dcfc0aacfbdfb56d5d1a708 (diff)
downloadmpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.gz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.tar.xz
mpd-ba161ec572b98d3bcf9f735ff122133319fe896a.zip
song: convert header to C++
Diffstat (limited to 'src/cue/CueParser.cxx')
-rw-r--r--src/cue/CueParser.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cue/CueParser.cxx b/src/cue/CueParser.cxx
index 915499f44..ae1445abc 100644
--- a/src/cue/CueParser.cxx
+++ b/src/cue/CueParser.cxx
@@ -20,7 +20,7 @@
#include "config.h"
#include "CueParser.hxx"
#include "util/StringUtil.hxx"
-#include "song.h"
+#include "Song.hxx"
#include "tag.h"
#include <glib.h>
@@ -42,13 +42,13 @@ CueParser::~CueParser()
g_free(filename);
if (current != nullptr)
- song_free(current);
+ current->Free();
if (previous != nullptr)
- song_free(previous);
+ previous->Free();
if (finished != nullptr)
- song_free(finished);
+ finished->Free();
}
static const char *
@@ -250,7 +250,7 @@ CueParser::Feed2(char *p)
}
state = TRACK;
- current = song_remote_new(filename);
+ current = Song::NewRemote(filename);
assert(current->tag == nullptr);
current->tag = tag_dup(tag);
tag_add_item(current->tag, TAG_TRACK, nr);
@@ -304,7 +304,7 @@ CueParser::Finish()
end = true;
}
-struct song *
+Song *
CueParser::Get()
{
if (finished == nullptr && end) {
@@ -316,7 +316,7 @@ CueParser::Get()
previous = nullptr;
}
- struct song *song = finished;
+ Song *song = finished;
finished = nullptr;
return song;
}