1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

Everywhere: Replace most cases of exit() with Application::quit()

Application::quit() is nicer for most cases where exit() is used. Cases
where exit() is used intentionally for early termination are left
intact.
This commit is contained in:
Timothy 2021-08-03 22:05:07 +10:00 committed by Andreas Kling
parent 2caafacd9b
commit 73c1b1617a
5 changed files with 12 additions and 11 deletions

View file

@ -79,12 +79,12 @@ void Starfield::mousemove_event(GUI::MouseEvent&)
void Starfield::mousedown_event(GUI::MouseEvent&)
{
::exit(0);
GUI::Application::the()->quit();
}
void Starfield::keydown_event(GUI::KeyEvent&)
{
::exit(0);
GUI::Application::the()->quit();
}
void Starfield::paint_event(GUI::PaintEvent& event)