Skip to content

Commit 8b58c6b

Browse files
committed
Don't create reference to a temporary
1 parent 8bce611 commit 8b58c6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

indra/newview/fsfloaterim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1595,7 +1595,7 @@ void FSFloaterIM::updateMessages()
15951595
// See also LLSpeakers::updateSpeakers() for own "has_spoken" extension. -Zi
15961596
if (!is_history && !pIMSession->mSpeakers->findSpeaker(from_id))
15971597
{
1598-
const std::string& from_id_str = from_id.asString();
1598+
const std::string from_id_str = from_id.asString();
15991599
LLSD new_speaker;
16001600
new_speaker["session_id"] = mSessionID;
16011601
new_speaker["agent_updates"][from_id_str]["transition"] = "ENTER";

0 commit comments

Comments
 (0)