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:
parent
2caafacd9b
commit
73c1b1617a
5 changed files with 12 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue