aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-03 12:14:55 +0100
committerMax Kellermann <max@duempel.org>2013-12-03 12:14:55 +0100
commitb23d2ad43b8cbf59b2fe87046a49094b1df30817 (patch)
treea89a5ddbaede16c56b0b9a39d56d5827174e0cbe /src/playlist
parentef68946e74d29f69ede42fa7b6d571a5ed62ebc7 (diff)
downloadmpd-b23d2ad43b8cbf59b2fe87046a49094b1df30817.tar.gz
mpd-b23d2ad43b8cbf59b2fe87046a49094b1df30817.tar.xz
mpd-b23d2ad43b8cbf59b2fe87046a49094b1df30817.zip
playlist/asx: rename "tag" to "tag_type"
Diffstat (limited to 'src/playlist')
-rw-r--r--src/playlist/AsxPlaylistPlugin.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/playlist/AsxPlaylistPlugin.cxx b/src/playlist/AsxPlaylistPlugin.cxx
index 2f4c7af60..7f2eef2b5 100644
--- a/src/playlist/AsxPlaylistPlugin.cxx
+++ b/src/playlist/AsxPlaylistPlugin.cxx
@@ -57,7 +57,7 @@ struct AsxParser {
* valid if state==ENTRY. TAG_NUM_OF_ITEM_TYPES means there
* is no (known) tag.
*/
- TagType tag;
+ TagType tag_type;
/**
* The current song. It is allocated after the "location"
@@ -95,7 +95,7 @@ asx_start_element(gcc_unused GMarkupParseContext *context,
if (StringEqualsCaseASCII(element_name, "entry")) {
parser->state = AsxParser::ENTRY;
parser->song = Song::NewRemote("asx:");
- parser->tag = TAG_NUM_OF_ITEM_TYPES;
+ parser->tag_type = TAG_NUM_OF_ITEM_TYPES;
}
break;
@@ -124,9 +124,9 @@ asx_start_element(gcc_unused GMarkupParseContext *context,
} else if (StringEqualsCaseASCII(element_name, "author"))
/* is that correct? or should it be COMPOSER
or PERFORMER? */
- parser->tag = TAG_ARTIST;
+ parser->tag_type = TAG_ARTIST;
else if (StringEqualsCaseASCII(element_name, "title"))
- parser->tag = TAG_TITLE;
+ parser->tag_type = TAG_TITLE;
break;
}
@@ -152,7 +152,7 @@ asx_end_element(gcc_unused GMarkupParseContext *context,
parser->state = AsxParser::ROOT;
} else
- parser->tag = TAG_NUM_OF_ITEM_TYPES;
+ parser->tag_type = TAG_NUM_OF_ITEM_TYPES;
break;
}
@@ -170,10 +170,10 @@ asx_text(gcc_unused GMarkupParseContext *context,
break;
case AsxParser::ENTRY:
- if (parser->tag != TAG_NUM_OF_ITEM_TYPES) {
+ if (parser->tag_type != TAG_NUM_OF_ITEM_TYPES) {
if (parser->song->tag == nullptr)
parser->song->tag = new Tag();
- parser->song->tag->AddItem(parser->tag,
+ parser->song->tag->AddItem(parser->tag_type,
text, text_len);
}