mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
Everywhere: Use _{short_,}string to create Strings from literals
This commit is contained in:
parent
85414d9338
commit
09d40bfbb2
92 changed files with 334 additions and 310 deletions
|
@ -39,11 +39,11 @@ SettingsDialog::SettingsDialog(GUI::Window* parent, DeprecatedString player_name
|
|||
auto& button_box = main_widget->add<GUI::Widget>();
|
||||
button_box.set_layout<GUI::HorizontalBoxLayout>(GUI::Margins {}, 12);
|
||||
|
||||
button_box.add<GUI::Button>(String::from_utf8_short_string("Cancel"sv)).on_click = [this](auto) {
|
||||
button_box.add<GUI::Button>("Cancel"_short_string).on_click = [this](auto) {
|
||||
done(ExecResult::Cancel);
|
||||
};
|
||||
|
||||
button_box.add<GUI::Button>(String::from_utf8_short_string("OK"sv)).on_click = [this](auto) {
|
||||
button_box.add<GUI::Button>("OK"_short_string).on_click = [this](auto) {
|
||||
done(ExecResult::OK);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue