diff options
author | Max Kellermann <max@duempel.org> | 2013-12-03 11:55:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-03 11:55:32 +0100 |
commit | 68fc3704e9b3916682c46a6d7e334984d00f538d (patch) | |
tree | 4a3170a0f44468323e0883d6878e35de999a9383 /src/cue/CueParser.cxx | |
parent | 69867015e97183fb36e5bb85ea190583f7f60082 (diff) | |
download | mpd-68fc3704e9b3916682c46a6d7e334984d00f538d.tar.gz mpd-68fc3704e9b3916682c46a6d7e334984d00f538d.tar.xz mpd-68fc3704e9b3916682c46a6d7e334984d00f538d.zip |
CueParser: rename "tag" to "header_tag"
Diffstat (limited to 'src/cue/CueParser.cxx')
-rw-r--r-- | src/cue/CueParser.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cue/CueParser.cxx b/src/cue/CueParser.cxx index 60b33b6b4..43c6efa80 100644 --- a/src/cue/CueParser.cxx +++ b/src/cue/CueParser.cxx @@ -31,7 +31,7 @@ #include <stdlib.h> CueParser::CueParser() - :state(HEADER), tag(new Tag()), + :state(HEADER), header_tag(new Tag()), current(nullptr), previous(nullptr), finished(nullptr), @@ -39,7 +39,7 @@ CueParser::CueParser() CueParser::~CueParser() { - delete tag; + delete header_tag; if (current != nullptr) current->Free(); @@ -133,7 +133,7 @@ Tag * CueParser::GetCurrentTag() { if (state == HEADER) - return tag; + return header_tag; else if (state == TRACK) return current->tag; else @@ -207,7 +207,7 @@ CueParser::Feed2(char *p) cue_add_tag(*current_tag, type, p); } else if (strcmp(command, "TITLE") == 0) { if (state == HEADER) - cue_add_tag(*tag, TAG_ALBUM, p); + cue_add_tag(*header_tag, TAG_ALBUM, p); else if (state == TRACK) cue_add_tag(*current->tag, TAG_TITLE, p); } else if (strcmp(command, "FILE") == 0) { @@ -251,7 +251,7 @@ CueParser::Feed2(char *p) state = TRACK; current = Song::NewRemote(filename.c_str()); assert(current->tag == nullptr); - current->tag = new Tag(*tag); + current->tag = new Tag(*header_tag); current->tag->AddItem(TAG_TRACK, nr); last_updated = false; } else if (state == IGNORE_TRACK) { |