LibCore: Change the signature of Socket::send() to use Span.

This commit is contained in:
asynts
2020-07-27 15:00:12 +02:00
committed by Andreas Kling
parent 4709b700bd
commit 21de20825a
3 changed files with 6 additions and 5 deletions

View File

@@ -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);
}