mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 11:41:33 +00:00
Remove redundant qualifiers
This commit is contained in:
parent
448658ce5b
commit
b791ce9132
2 changed files with 4 additions and 4 deletions
|
@ -60,8 +60,8 @@ const std::string Attribute::sAttributeIcons[Attribute::Length] = {
|
||||||
|
|
||||||
Attribute::AttributeID Attribute::stringToAttributeId(std::string_view attribute)
|
Attribute::AttributeID Attribute::stringToAttributeId(std::string_view attribute)
|
||||||
{
|
{
|
||||||
for (auto id : ESM::Attribute::sAttributeIds)
|
for (auto id : sAttributeIds)
|
||||||
if (Misc::StringUtils::ciEqual(ESM::Attribute::sAttributeNames[id], attribute))
|
if (Misc::StringUtils::ciEqual(sAttributeNames[id], attribute))
|
||||||
return id;
|
return id;
|
||||||
|
|
||||||
throw std::logic_error("No such attribute: " + std::string(attribute));
|
throw std::logic_error("No such attribute: " + std::string(attribute));
|
||||||
|
|
|
@ -101,8 +101,8 @@ namespace ESM
|
||||||
|
|
||||||
Skill::SkillEnum Skill::stringToSkillId(std::string_view skill)
|
Skill::SkillEnum Skill::stringToSkillId(std::string_view skill)
|
||||||
{
|
{
|
||||||
for (auto id : ESM::Skill::sSkillIds)
|
for (auto id : sSkillIds)
|
||||||
if (Misc::StringUtils::ciEqual(ESM::Skill::sSkillNames[id], skill))
|
if (Misc::StringUtils::ciEqual(sSkillNames[id], skill))
|
||||||
return id;
|
return id;
|
||||||
|
|
||||||
throw std::logic_error("No such skill: " + std::string(skill));
|
throw std::logic_error("No such skill: " + std::string(skill));
|
||||||
|
|
Loading…
Reference in a new issue