mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:27:45 +00:00
Misc: Replace "String(string_view)" with "string_view.to_string()"
StringView::to_string() was added in 917ccb1 but not actually used anywhere yet.
This commit is contained in:
parent
107ca2e4ba
commit
9dbab2d05e
10 changed files with 11 additions and 11 deletions
|
@ -870,7 +870,7 @@ void IRCClient::handle_user_command(const String& input)
|
|||
return;
|
||||
int command_length = command.length() + 1;
|
||||
StringView raw_message = input.view().substring_view(command_length, input.view().length() - command_length);
|
||||
send(String::format("%s\r\n", String(raw_message).characters()));
|
||||
send(String::format("%s\r\n", raw_message.to_string().characters()));
|
||||
return;
|
||||
}
|
||||
if (command == "/NICK") {
|
||||
|
|
|
@ -80,7 +80,7 @@ ToolboxWidget::ToolboxWidget()
|
|||
button.set_checkable(true);
|
||||
button.set_exclusive(true);
|
||||
|
||||
button.set_icon(Gfx::Bitmap::load_from_file(String::format("/res/icons/paintbrush/%s.png", String(icon_name).characters())));
|
||||
button.set_icon(Gfx::Bitmap::load_from_file(String::format("/res/icons/paintbrush/%s.png", icon_name.to_string().characters())));
|
||||
|
||||
button.on_checked = [button = &button](auto checked) {
|
||||
if (checked)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue