mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +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
|
@ -708,7 +708,7 @@ void Window::request_update(Gfx::IntRect const& rect, bool ignore_occlusion)
|
|||
void Window::ensure_window_menu()
|
||||
{
|
||||
if (!m_window_menu) {
|
||||
m_window_menu = Menu::construct(nullptr, -1, "(Window Menu)"_string.release_value_but_fixme_should_propagate_errors());
|
||||
m_window_menu = Menu::construct(nullptr, -1, "(Window Menu)"_string);
|
||||
m_window_menu->set_window_menu_of(*this);
|
||||
|
||||
auto minimize_item = make<MenuItem>(*m_window_menu, (unsigned)WindowMenuAction::MinimizeOrUnminimize, "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue