mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 04:40:26 +00:00
Throw exceptions by value instead of reference
This commit is contained in:
parent
8f75292d04
commit
18a59df050
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ namespace MWGui
|
||||||
else if (skill < ESM::Skill::Length)
|
else if (skill < ESM::Skill::Length)
|
||||||
setSkillId(static_cast<ESM::Skill::SkillEnum>(skill));
|
setSkillId(static_cast<ESM::Skill::SkillEnum>(skill));
|
||||||
else
|
else
|
||||||
throw new std::runtime_error("Skill number out of range");
|
throw std::runtime_error("Skill number out of range");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MWSkill::setSkillValue(const SkillValue& value)
|
void MWSkill::setSkillValue(const SkillValue& value)
|
||||||
|
|
|
@ -368,7 +368,7 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new std::runtime_error("Tried to package non-motion event!");
|
throw std::runtime_error("Tried to package non-motion event!");
|
||||||
}
|
}
|
||||||
|
|
||||||
return pack_evt;
|
return pack_evt;
|
||||||
|
|
Loading…
Reference in a new issue