mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
Notes:
sideshowbarker
2024-07-17 07:38:17 +09:00
Author: https://github.com/awesomekling
Commit: 58e482a06d
Pull-request: https://github.com/SerenityOS/serenity/pull/20571
22 changed files with 28 additions and 35 deletions
|
@ -73,15 +73,9 @@ void Layout::add_entry(Entry&& entry)
|
|||
MUST(try_add_entry(move(entry)));
|
||||
}
|
||||
|
||||
ErrorOr<void> Layout::try_add_spacer()
|
||||
{
|
||||
TRY(try_add_entry(Entry { .type = Entry::Type::Spacer }));
|
||||
return {};
|
||||
}
|
||||
|
||||
void Layout::add_spacer()
|
||||
{
|
||||
MUST(try_add_spacer());
|
||||
add_entry(Entry { .type = Entry::Type::Spacer });
|
||||
}
|
||||
|
||||
void Layout::add_layout(OwnPtr<Layout>&& layout)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue