1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:18:11 +00:00

LibGUI+Userland: Make Dialog::ExecResult an enum class

This commit is contained in:
Sam Atkins 2022-05-13 13:10:27 +01:00 committed by Linus Groh
parent 1f82beded3
commit cdffe556c8
90 changed files with 232 additions and 232 deletions

View file

@ -58,11 +58,11 @@ WizardDialog::WizardDialog(Window* parent_window)
VERIFY(has_pages());
if (!current_page().can_go_next())
return done(ExecOK);
return done(ExecResult::OK);
auto next_page = current_page().next_page();
if (!next_page)
return done(ExecOK);
return done(ExecResult::OK);
push_page(*next_page);
};
@ -143,7 +143,7 @@ void WizardDialog::handle_cancel()
if (on_cancel)
return on_cancel();
done(ExecCancel);
done(ExecResult::Cancel);
}
}