LibGUI: Remove Layout::try_add_spacer()

And fall back to the infallible add_spacer().

Work towards #20557.
This commit is contained in:
Andreas Kling 2023-08-13 18:29:05 +02:00
commit 58e482a06d
Notes: sideshowbarker 2024-07-17 07:38:17 +09:00
22 changed files with 28 additions and 35 deletions

View file

@ -356,7 +356,7 @@ public:
// In order for others to be able to call this, it needs to be public.
virtual ErrorOr<void> load_from_gml_ast(NonnullRefPtr<GUI::GML::Node const> ast, UnregisteredChildHandler);
ErrorOr<void> add_spacer();
void add_spacer();
protected:
Widget();