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:
parent
448658ce5b
commit
b791ce9132
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user