diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-05-13 13:10:27 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-05-13 16:27:43 +0200 |
commit | cdffe556c8fcca034b10cf91f0b05c17d835bc7b (patch) | |
tree | 189cbd59652eee1b2783a8323a7194100c78fd07 /Userland/DevTools/SQLStudio | |
parent | 1f82beded3ae3664265f1ddf6075f64ca5a08cde (diff) | |
download | serenity-cdffe556c8fcca034b10cf91f0b05c17d835bc7b.zip |
LibGUI+Userland: Make Dialog::ExecResult an enum class
Diffstat (limited to 'Userland/DevTools/SQLStudio')
-rw-r--r-- | Userland/DevTools/SQLStudio/MainWidget.cpp | 4 | ||||
-rw-r--r-- | Userland/DevTools/SQLStudio/ScriptEditor.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/DevTools/SQLStudio/MainWidget.cpp b/Userland/DevTools/SQLStudio/MainWidget.cpp index e353de32cb..938a8f3f1f 100644 --- a/Userland/DevTools/SQLStudio/MainWidget.cpp +++ b/Userland/DevTools/SQLStudio/MainWidget.cpp @@ -266,9 +266,9 @@ bool MainWidget::request_close() auto result = GUI::MessageBox::ask_about_unsaved_changes(window(), {}); switch (result) { - case GUI::Dialog::ExecResult::ExecYes: + case GUI::Dialog::ExecResult::Yes: break; - case GUI::Dialog::ExecResult::ExecNo: + case GUI::Dialog::ExecResult::No: return true; default: return false; diff --git a/Userland/DevTools/SQLStudio/ScriptEditor.cpp b/Userland/DevTools/SQLStudio/ScriptEditor.cpp index 49ed707a8d..ac25ee786b 100644 --- a/Userland/DevTools/SQLStudio/ScriptEditor.cpp +++ b/Userland/DevTools/SQLStudio/ScriptEditor.cpp @@ -85,9 +85,9 @@ ErrorOr<bool> ScriptEditor::attempt_to_close() auto result = GUI::MessageBox::ask_about_unsaved_changes(window(), m_path.is_empty() ? name() : m_path, document().undo_stack().last_unmodified_timestamp()); switch (result) { - case GUI::Dialog::ExecResult::ExecYes: + case GUI::Dialog::ExecResult::Yes: return save(); - case GUI::Dialog::ExecResult::ExecNo: + case GUI::Dialog::ExecResult::No: return true; default: return false; |