summaryrefslogtreecommitdiff
path: root/Applications/IRCClient
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-07-27 15:00:12 +0200
committerAndreas Kling <kling@serenityos.org>2020-07-27 19:58:09 +0200
commit21de20825a58c2cd314c19eddf071560a60aff99 (patch)
tree73cc4f7870854a10f09626601d80f91ff383b660 /Applications/IRCClient
parent4709b700bd91c181c9bfa157ad720036f7717b5a (diff)
downloadserenity-21de20825a58c2cd314c19eddf071560a60aff99.zip
LibCore: Change the signature of Socket::send() to use Span.
Diffstat (limited to 'Applications/IRCClient')
-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 6b078e281f..31f4e01a10 100644
--- a/Applications/IRCClient/IRCClient.cpp
+++ b/Applications/IRCClient/IRCClient.cpp
@@ -215,7 +215,7 @@ void IRCClient::process_line(ByteBuffer&& line)
void IRCClient::send(const String& text)
{
- if (!m_socket->send(ByteBuffer::wrap(text.characters(), text.length()))) {
+ if (!m_socket->send(text.bytes())) {
perror("send");
exit(1);
}