mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
AK: Make "foo"_string infallible
Stop worrying about tiny OOMs. Work towards #20405.
This commit is contained in:
parent
db2a8725c6
commit
34344120f2
181 changed files with 626 additions and 630 deletions
|
@ -71,7 +71,7 @@ ErrorOr<void> PresenterWidget::initialize_menubar()
|
|||
GUI::Application::the()->quit();
|
||||
})));
|
||||
|
||||
auto presentation_menu = TRY(window->try_add_menu(TRY("&Presentation"_string)));
|
||||
auto presentation_menu = TRY(window->try_add_menu("&Presentation"_string));
|
||||
m_next_slide_action = GUI::Action::create("&Next", { KeyCode::Key_Right }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"sv)), [this](auto&) {
|
||||
if (m_current_presentation) {
|
||||
m_current_presentation->next_frame();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue