Don't create reference to a temporary

master
Ansariel 2025-12-13 23:22:11 +01:00
parent 8bce6114b1
commit 8b58c6b9aa
1 changed files with 1 additions and 1 deletions

View File

@ -1595,7 +1595,7 @@ void FSFloaterIM::updateMessages()
// See also LLSpeakers::updateSpeakers() for own "has_spoken" extension. -Zi // See also LLSpeakers::updateSpeakers() for own "has_spoken" extension. -Zi
if (!is_history && !pIMSession->mSpeakers->findSpeaker(from_id)) if (!is_history && !pIMSession->mSpeakers->findSpeaker(from_id))
{ {
const std::string& from_id_str = from_id.asString(); const std::string from_id_str = from_id.asString();
LLSD new_speaker; LLSD new_speaker;
new_speaker["session_id"] = mSessionID; new_speaker["session_id"] = mSessionID;
new_speaker["agent_updates"][from_id_str]["transition"] = "ENTER"; new_speaker["agent_updates"][from_id_str]["transition"] = "ENTER";