From 8e3cfe9805dbc3fa3a29bbbcaf857d9d239e668f Mon Sep 17 00:00:00 2001 From: David Rowe Date: Fri, 29 Oct 2021 23:04:41 +1300 Subject: [PATCH] Fix non-const lvalue reference --- libraries/networking/src/webrtc/WebRTCDataChannels.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/networking/src/webrtc/WebRTCDataChannels.cpp b/libraries/networking/src/webrtc/WebRTCDataChannels.cpp index 0d069d7171..128d48f42a 100644 --- a/libraries/networking/src/webrtc/WebRTCDataChannels.cpp +++ b/libraries/networking/src/webrtc/WebRTCDataChannels.cpp @@ -489,7 +489,8 @@ void WebRTCDataChannels::onSignalingMessage(const QJsonObject& message) { // Add a remote ICE candidate. if (data.contains("candidate")) { - connection->addIceCandidate(data.value("candidate").toObject()); + auto candidate = data.value("candidate").toObject(); + connection->addIceCandidate(candidate); } }