Commit ba61a928 authored by Max Kellermann's avatar Max Kellermann

CueParser: rename local variables "current_tag" to "tag"

parent 68fc3704
...@@ -188,9 +188,9 @@ CueParser::Feed2(char *p) ...@@ -188,9 +188,9 @@ CueParser::Feed2(char *p)
return; return;
if (strcmp(command, "REM") == 0) { if (strcmp(command, "REM") == 0) {
Tag *current_tag = GetCurrentTag(); Tag *tag = GetCurrentTag();
if (current_tag != nullptr) if (tag != nullptr)
cue_parse_rem(p, *current_tag); cue_parse_rem(p, *tag);
} else if (strcmp(command, "PERFORMER") == 0) { } else if (strcmp(command, "PERFORMER") == 0) {
/* MPD knows a "performer" tag, but it is not a good /* MPD knows a "performer" tag, but it is not a good
match for this CUE tag; from the Hydrogenaudio match for this CUE tag; from the Hydrogenaudio
...@@ -202,9 +202,9 @@ CueParser::Feed2(char *p) ...@@ -202,9 +202,9 @@ CueParser::Feed2(char *p)
? TAG_ARTIST ? TAG_ARTIST
: TAG_ALBUM_ARTIST; : TAG_ALBUM_ARTIST;
Tag *current_tag = GetCurrentTag(); Tag *tag = GetCurrentTag();
if (current_tag != nullptr) if (tag != nullptr)
cue_add_tag(*current_tag, type, p); cue_add_tag(*tag, type, p);
} else if (strcmp(command, "TITLE") == 0) { } else if (strcmp(command, "TITLE") == 0) {
if (state == HEADER) if (state == HEADER)
cue_add_tag(*header_tag, TAG_ALBUM, p); cue_add_tag(*header_tag, TAG_ALBUM, p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment