mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibGUI: Remove Layout::try_add_spacer()
And fall back to the infallible add_spacer(). Work towards #20557.
This commit is contained in:
parent
8322b31b97
commit
58e482a06d
22 changed files with 28 additions and 35 deletions
|
@ -179,7 +179,7 @@ ErrorOr<void> MessageBox::build()
|
|||
return button;
|
||||
};
|
||||
|
||||
TRY(button_container->add_spacer());
|
||||
button_container->add_spacer();
|
||||
if (should_include_ok_button())
|
||||
m_ok_button = TRY(add_button("OK"_string, ExecResult::OK));
|
||||
if (should_include_yes_button())
|
||||
|
@ -188,7 +188,7 @@ ErrorOr<void> MessageBox::build()
|
|||
m_no_button = TRY(add_button("No"_string, ExecResult::No));
|
||||
if (should_include_cancel_button())
|
||||
m_cancel_button = TRY(add_button("Cancel"_string, ExecResult::Cancel));
|
||||
TRY(button_container->add_spacer());
|
||||
button_container->add_spacer();
|
||||
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue