aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_websocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-11-17 15:41:32 +0000
committerGravatar Sadie Powell2021-11-17 15:41:32 +0000
commitb0959d3a0e4610a32ced20dfce3866502489bc29 (patch)
tree3e5fe9ad01aa363d8470e47870a59b92b7c98637 /src/modules/m_websocket.cpp
parentRelease v4.0.0 alpha 6. (diff)
Move the websocket protocol name instead of copying it.
Closes #1929.
Diffstat (limited to 'src/modules/m_websocket.cpp')
-rw-r--r--src/modules/m_websocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp
index 6555d3ad7..d682d77df 100644
--- a/src/modules/m_websocket.cpp
+++ b/src/modules/m_websocket.cpp
@@ -427,7 +427,7 @@ class WebSocketHook final
if (is_binary || is_text)
{
- selectedproto = proto;
+ selectedproto = std::move(proto);
sendastext = is_text;
break;
}