diff options
author | Max Kellermann <max@duempel.org> | 2013-10-20 13:32:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-20 13:32:59 +0200 |
commit | a78b2d84ed7c2a82c69c56125036e70b009a87b0 (patch) | |
tree | c8818c4111e9f2138cb66a38e1664ad5aa432bd4 /src/tag/Tag.cxx | |
parent | cf4d80fc655a399615529bdd27e0be284754c5ab (diff) | |
download | mpd-a78b2d84ed7c2a82c69c56125036e70b009a87b0.tar.gz mpd-a78b2d84ed7c2a82c69c56125036e70b009a87b0.tar.xz mpd-a78b2d84ed7c2a82c69c56125036e70b009a87b0.zip |
TagType: rename enum tag_type to TagType
Diffstat (limited to 'src/tag/Tag.cxx')
-rw-r--r-- | src/tag/Tag.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx index 8e6766f80..6ff8b3dc9 100644 --- a/src/tag/Tag.cxx +++ b/src/tag/Tag.cxx @@ -27,7 +27,7 @@ #include <assert.h> #include <string.h> -enum tag_type +TagType tag_name_parse(const char *name) { assert(name != nullptr); @@ -36,13 +36,13 @@ tag_name_parse(const char *name) assert(tag_item_names[i] != nullptr); if (strcmp(name, tag_item_names[i]) == 0) - return (enum tag_type)i; + return (TagType)i; } return TAG_NUM_OF_ITEM_TYPES; } -enum tag_type +TagType tag_name_parse_i(const char *name) { assert(name != nullptr); @@ -51,7 +51,7 @@ tag_name_parse_i(const char *name) assert(tag_item_names[i] != nullptr); if (g_ascii_strcasecmp(name, tag_item_names[i]) == 0) - return (enum tag_type)i; + return (TagType)i; } return TAG_NUM_OF_ITEM_TYPES; @@ -166,7 +166,7 @@ Tag::MergeReplace(Tag *base, Tag *add) } const char * -Tag::GetValue(tag_type type) const +Tag::GetValue(TagType type) const { assert(type < TAG_NUM_OF_ITEM_TYPES); @@ -178,13 +178,13 @@ Tag::GetValue(tag_type type) const } bool -Tag::HasType(tag_type type) const +Tag::HasType(TagType type) const { return GetValue(type) != nullptr; } void -Tag::AddItemInternal(tag_type type, const char *value, size_t len) +Tag::AddItemInternal(TagType type, const char *value, size_t len) { unsigned int i = num_items; @@ -206,7 +206,7 @@ Tag::AddItemInternal(tag_type type, const char *value, size_t len) } void -Tag::AddItem(tag_type type, const char *value, size_t len) +Tag::AddItem(TagType type, const char *value, size_t len) { if (ignore_tag_items[type]) return; @@ -218,7 +218,7 @@ Tag::AddItem(tag_type type, const char *value, size_t len) } void -Tag::AddItem(tag_type type, const char *value) +Tag::AddItem(TagType type, const char *value) { AddItem(type, value, strlen(value)); } |