summaryrefslogtreecommitdiff
path: root/Userland/Applications/Calendar/AddEventDialog.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-17 10:47:04 +0000
committerSam Atkins <atkinssj@gmail.com>2023-02-18 16:56:56 +0000
commit9561ec15f47fdba66a4e8872fd03aae8d0f2df22 (patch)
tree68cf03d814588d7bba1dc8703e81ffabbef04722 /Userland/Applications/Calendar/AddEventDialog.cpp
parent43dddafd1684bec9a3ba083b58d2bc438cf726f5 (diff)
downloadserenity-9561ec15f47fdba66a4e8872fd03aae8d0f2df22.zip
Userland: Use Widget::add_spacer() everywhere
Diffstat (limited to 'Userland/Applications/Calendar/AddEventDialog.cpp')
-rw-r--r--Userland/Applications/Calendar/AddEventDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Calendar/AddEventDialog.cpp b/Userland/Applications/Calendar/AddEventDialog.cpp
index 945ad8760f..973871ed6c 100644
--- a/Userland/Applications/Calendar/AddEventDialog.cpp
+++ b/Userland/Applications/Calendar/AddEventDialog.cpp
@@ -87,12 +87,12 @@ AddEventDialog::AddEventDialog(Core::DateTime date_time, Window* parent_window)
starting_meridiem_combo.set_model(MeridiemListModel::create());
starting_meridiem_combo.set_selected_index(0);
- widget->layout()->add_spacer();
+ widget->add_spacer().release_value_but_fixme_should_propagate_errors();
auto& button_container = widget->add<GUI::Widget>();
button_container.set_fixed_height(20);
button_container.set_layout<GUI::HorizontalBoxLayout>();
- button_container.layout()->add_spacer();
+ button_container.add_spacer().release_value_but_fixme_should_propagate_errors();
auto& ok_button = button_container.add<GUI::Button>(String::from_utf8_short_string("OK"sv));
ok_button.set_fixed_size(80, 20);
ok_button.on_click = [this](auto) {