summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/IRCClient.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-05-06 18:18:24 +0100
committerAndreas Kling <kling@serenityos.org>2020-05-06 19:28:59 +0200
commit9dbab2d05e2893584dc4f9b42741fc0597718966 (patch)
tree1627952ac73604757a6791d1de0437bd954a2791 /Applications/IRCClient/IRCClient.cpp
parent107ca2e4ba8f88f39f58c4a92d238ea642aa0d39 (diff)
downloadserenity-9dbab2d05e2893584dc4f9b42741fc0597718966.zip
Misc: Replace "String(string_view)" with "string_view.to_string()"
StringView::to_string() was added in 917ccb1 but not actually used anywhere yet.
Diffstat (limited to 'Applications/IRCClient/IRCClient.cpp')
-rw-r--r--Applications/IRCClient/IRCClient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/IRCClient/IRCClient.cpp b/Applications/IRCClient/IRCClient.cpp
index a052009e71..f6f4837195 100644
--- a/Applications/IRCClient/IRCClient.cpp
+++ b/Applications/IRCClient/IRCClient.cpp
@@ -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") {