Throw exceptions by value instead of reference

This commit is contained in:
Andrei Kortunov 2019-02-17 10:24:25 +04:00
parent 8f75292d04
commit 18a59df050
2 changed files with 2 additions and 2 deletions

View file

@ -368,7 +368,7 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
}
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;