1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 18:39:29 +00:00

Remove redundant qualifiers

This commit is contained in:
Mads Buvik Sandvei 2023-05-21 13:01:11 +02:00
parent 448658ce5b
commit b791ce9132
2 changed files with 4 additions and 4 deletions

View File

@ -60,8 +60,8 @@ const std::string Attribute::sAttributeIcons[Attribute::Length] = {
Attribute::AttributeID Attribute::stringToAttributeId(std::string_view attribute)
{
for (auto id : ESM::Attribute::sAttributeIds)
if (Misc::StringUtils::ciEqual(ESM::Attribute::sAttributeNames[id], attribute))
for (auto id : sAttributeIds)
if (Misc::StringUtils::ciEqual(sAttributeNames[id], attribute))
return id;
throw std::logic_error("No such attribute: " + std::string(attribute));

View File

@ -101,8 +101,8 @@ namespace ESM
Skill::SkillEnum Skill::stringToSkillId(std::string_view skill)
{
for (auto id : ESM::Skill::sSkillIds)
if (Misc::StringUtils::ciEqual(ESM::Skill::sSkillNames[id], skill))
for (auto id : sSkillIds)
if (Misc::StringUtils::ciEqual(sSkillNames[id], skill))
return id;
throw std::logic_error("No such skill: " + std::string(skill));