mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +00:00
Userland: Prefer _string over _short_string
As `_string` can't fail anymore (since 3434412), there are no real
benefits to use the short variant in most cases.
This commit is contained in:
committed by
Andreas Kling
parent
a5edc9cdfc
commit
3f35ffb648
@@ -161,7 +161,7 @@ ErrorOr<void> InputBox::build()
|
||||
TRY(button_container->try_set_layout<HorizontalBoxLayout>(0, 6));
|
||||
TRY(button_container->add_spacer());
|
||||
|
||||
m_ok_button = TRY(button_container->try_add<DialogButton>("OK"_short_string));
|
||||
m_ok_button = TRY(button_container->try_add<DialogButton>("OK"_string));
|
||||
m_ok_button->on_click = [this](auto) {
|
||||
if (m_spinbox)
|
||||
m_spinbox->set_value_from_current_text();
|
||||
@@ -169,7 +169,7 @@ ErrorOr<void> InputBox::build()
|
||||
};
|
||||
m_ok_button->set_default(true);
|
||||
|
||||
m_cancel_button = TRY(button_container->try_add<DialogButton>("Cancel"_short_string));
|
||||
m_cancel_button = TRY(button_container->try_add<DialogButton>("Cancel"_string));
|
||||
m_cancel_button->on_click = [this](auto) { done(ExecResult::Cancel); };
|
||||
|
||||
auto guarantee_width = [this, button_container] {
|
||||
|
||||
Reference in New Issue
Block a user