Don't use fancy enum features

This commit is contained in:
Max Brunsfeld 2018-06-15 15:34:03 -07:00
parent 3fce691fae
commit 8e6d71bd54
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
using std::string; using std::string;
using std::unordered_map; using std::unordered_map;
enum TagType : char { enum TagType {
AREA, AREA,
BASE, BASE,
BASEFONT, BASEFONT,
@ -307,7 +307,7 @@ struct Tag {
bool operator==(const Tag &other) const { bool operator==(const Tag &other) const {
if (type != other.type) return false; if (type != other.type) return false;
if (type == TagType::CUSTOM && custom_tag_name != other.custom_tag_name) return false; if (type == CUSTOM && custom_tag_name != other.custom_tag_name) return false;
return true; return true;
} }