mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
LibCore: Change the signature of Socket::send() to use Span.
This commit is contained in:
parent
4709b700bd
commit
21de20825a
Notes:
sideshowbarker
2024-07-19 04:32:31 +09:00
Author: https://github.com/asynts
Commit: 21de20825a
Pull-request: https://github.com/SerenityOS/serenity/pull/2903
3 changed files with 6 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue