mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibWebSocket: Remove meaningless const&&
Message constructor
This results in an ambiguity error in an upcoming commit.
This commit is contained in:
parent
5f76324af5
commit
8f6169859d
Notes:
github-actions[bot]
2025-03-09 15:15:36 +00:00
Author: https://github.com/trflynn89
Commit: 8f6169859d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3865
2 changed files with 3 additions and 9 deletions
|
@ -20,13 +20,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit Message(ByteBuffer data, bool is_text)
|
Message(ByteBuffer data, bool is_text)
|
||||||
: m_is_text(is_text)
|
|
||||||
, m_data(move(data))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
explicit Message(ByteBuffer const&& data, bool is_text)
|
|
||||||
: m_is_text(is_text)
|
: m_is_text(is_text)
|
||||||
, m_data(move(data))
|
, m_data(move(data))
|
||||||
{
|
{
|
||||||
|
|
|
@ -525,11 +525,11 @@ void WebSocket::read_frame()
|
||||||
m_fragmented_data_buffer.clear();
|
m_fragmented_data_buffer.clear();
|
||||||
}
|
}
|
||||||
if (op_code == WebSocket::OpCode::Text) {
|
if (op_code == WebSocket::OpCode::Text) {
|
||||||
notify_message(Message(payload, true));
|
notify_message(Message(move(payload), true));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (op_code == WebSocket::OpCode::Binary) {
|
if (op_code == WebSocket::OpCode::Binary) {
|
||||||
notify_message(Message(payload, false));
|
notify_message(Message(move(payload), false));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dbgln("Websocket: Found unknown opcode {}", (u8)op_code);
|
dbgln("Websocket: Found unknown opcode {}", (u8)op_code);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue