summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Tools/EllipseTool.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/Tools/EllipseTool.cpp
parent85414d9338f5b4a25f46f519c07af161c48af45d (diff)
downloadserenity-09d40bfbb24588b5659f17e2701b5c367a447110.zip
Everywhere: Use _{short_,}string to create Strings from literals
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/EllipseTool.cpp')
-rw-r--r--Userland/Applications/PixelPaint/Tools/EllipseTool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp b/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp
index d46888b0e5..a1140171fe 100644
--- a/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp
+++ b/Userland/Applications/PixelPaint/Tools/EllipseTool.cpp
@@ -140,7 +140,7 @@ ErrorOr<GUI::Widget*> EllipseTool::get_properties_widget()
thickness_label->set_text_alignment(Gfx::TextAlignment::CenterLeft);
thickness_label->set_fixed_size(80, 20);
- auto thickness_slider = TRY(thickness_container->try_add<GUI::ValueSlider>(Orientation::Horizontal, String::from_utf8_short_string("px"sv)));
+ auto thickness_slider = TRY(thickness_container->try_add<GUI::ValueSlider>(Orientation::Horizontal, "px"_short_string));
thickness_slider->set_range(1, 10);
thickness_slider->set_value(m_thickness);
@@ -157,9 +157,9 @@ ErrorOr<GUI::Widget*> EllipseTool::get_properties_widget()
auto mode_radio_container = TRY(mode_container->try_add<GUI::Widget>());
(void)TRY(mode_radio_container->try_set_layout<GUI::VerticalBoxLayout>());
- auto outline_mode_radio = TRY(mode_radio_container->try_add<GUI::RadioButton>(String::from_utf8_short_string("Outline"sv)));
- auto fill_mode_radio = TRY(mode_radio_container->try_add<GUI::RadioButton>(String::from_utf8_short_string("Fill"sv)));
- auto aa_enable_checkbox = TRY(mode_radio_container->try_add<GUI::CheckBox>(TRY(String::from_utf8("Anti-alias"sv))));
+ auto outline_mode_radio = TRY(mode_radio_container->try_add<GUI::RadioButton>("Outline"_short_string));
+ auto fill_mode_radio = TRY(mode_radio_container->try_add<GUI::RadioButton>("Fill"_short_string));
+ auto aa_enable_checkbox = TRY(mode_radio_container->try_add<GUI::CheckBox>(TRY("Anti-alias"_string)));
aa_enable_checkbox->on_checked = [this](bool checked) {
m_antialias_enabled = checked;