summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-02-25 16:40:37 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-25 20:51:49 +0100
commit09d40bfbb24588b5659f17e2701b5c367a447110 (patch)
tree8a5612e3251e504ab41d0ff5c7a1a7f70c2593b0 /Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
parent85414d9338f5b4a25f46f519c07af161c48af45d (diff)
downloadserenity-09d40bfbb24588b5659f17e2701b5c367a447110.zip
Everywhere: Use _{short_,}string to create Strings from literals
Diffstat (limited to 'Userland/Applications/PixelPaint/CreateNewImageDialog.cpp')
-rw-r--r--Userland/Applications/PixelPaint/CreateNewImageDialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp b/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
index dec5c81ed9..f837a5e0cf 100644
--- a/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
+++ b/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
@@ -110,12 +110,12 @@ CreateNewImageDialog::CreateNewImageDialog(GUI::Window* parent_window)
};
auto& set_defaults_checkbox = main_widget->add<GUI::CheckBox>();
- set_defaults_checkbox.set_text(String::from_utf8("Use these settings as default"sv).release_value_but_fixme_should_propagate_errors());
+ set_defaults_checkbox.set_text("Use these settings as default"_string.release_value_but_fixme_should_propagate_errors());
auto& button_container = main_widget->add<GUI::Widget>();
button_container.set_layout<GUI::HorizontalBoxLayout>();
- auto& ok_button = button_container.add<GUI::Button>(String::from_utf8_short_string("OK"sv));
+ auto& ok_button = button_container.add<GUI::Button>("OK"_short_string);
ok_button.on_click = [&](auto) {
if (set_defaults_checkbox.is_checked()) {
Config::write_string("PixelPaint"sv, "NewImage"sv, "Name"sv, m_image_name);
@@ -128,7 +128,7 @@ CreateNewImageDialog::CreateNewImageDialog(GUI::Window* parent_window)
};
ok_button.set_default(true);
- auto& cancel_button = button_container.add<GUI::Button>(String::from_utf8_short_string("Cancel"sv));
+ auto& cancel_button = button_container.add<GUI::Button>("Cancel"_short_string);
cancel_button.on_click = [this](auto) {
done(ExecResult::Cancel);
};