mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57: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
|
@ -85,7 +85,7 @@ private:
|
|||
m_root_container->set_layout<GUI::VerticalBoxLayout>(4, 0);
|
||||
m_root_container->set_frame_shape(Gfx::FrameShape::Window);
|
||||
|
||||
m_percent_box = m_root_container->add<GUI::CheckBox>(String::from_utf8_short_string("\xE2\x84\xB9"sv));
|
||||
m_percent_box = m_root_container->add<GUI::CheckBox>("\xE2\x84\xB9"_short_string);
|
||||
m_percent_box->set_tooltip(m_show_percent ? "Hide percent" : "Show percent");
|
||||
m_percent_box->set_checked(m_show_percent);
|
||||
m_percent_box->on_checked = [&](bool show_percent) {
|
||||
|
@ -110,7 +110,7 @@ private:
|
|||
update();
|
||||
};
|
||||
|
||||
m_mute_box = m_root_container->add<GUI::CheckBox>(String::from_utf8_short_string("\xE2\x9D\x8C"sv));
|
||||
m_mute_box = m_root_container->add<GUI::CheckBox>("\xE2\x9D\x8C"_short_string);
|
||||
m_mute_box->set_checked(m_audio_muted);
|
||||
m_mute_box->set_tooltip(m_audio_muted ? "Unmute" : "Mute");
|
||||
m_mute_box->on_checked = [&](bool is_muted) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue