mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWebSocket: Remove meaningless const&& Message constructor
This results in an ambiguity error in an upcoming commit.
This commit is contained in:
Notes:
github-actions[bot]
2025-03-09 15:15:36 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/8f6169859d0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3865
@@ -20,13 +20,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
explicit Message(ByteBuffer data, bool is_text)
|
||||
: m_is_text(is_text)
|
||||
, m_data(move(data))
|
||||
{
|
||||
}
|
||||
|
||||
explicit Message(ByteBuffer const&& data, bool is_text)
|
||||
Message(ByteBuffer data, bool is_text)
|
||||
: m_is_text(is_text)
|
||||
, m_data(move(data))
|
||||
{
|
||||
|
||||
@@ -525,11 +525,11 @@ void WebSocket::read_frame()
|
||||
m_fragmented_data_buffer.clear();
|
||||
}
|
||||
if (op_code == WebSocket::OpCode::Text) {
|
||||
notify_message(Message(payload, true));
|
||||
notify_message(Message(move(payload), true));
|
||||
return;
|
||||
}
|
||||
if (op_code == WebSocket::OpCode::Binary) {
|
||||
notify_message(Message(payload, false));
|
||||
notify_message(Message(move(payload), false));
|
||||
return;
|
||||
}
|
||||
dbgln("Websocket: Found unknown opcode {}", (u8)op_code);
|
||||
|
||||
Reference in New Issue
Block a user