1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +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

@ -52,18 +52,18 @@ void Screensaver::mousemove_event(GUI::MouseEvent& event)
if (m_mouse_origin.is_null()) {
m_mouse_origin = event.position();
} else if (event.position().distance_from(m_mouse_origin) > max_distance_move) {
::exit(0);
GUI::Application::the()->quit();
}
}
void Screensaver::mousedown_event(GUI::MouseEvent&)
{
::exit(0);
GUI::Application::the()->quit();
}
void Screensaver::keydown_event(GUI::KeyEvent&)
{
::exit(0);
GUI::Application::the()->quit();
}
void Screensaver::paint_event(GUI::PaintEvent& event)