diff --git a/indra/newview/llfloaterchatmentionpicker.cpp b/indra/newview/llfloaterchatmentionpicker.cpp index 44f1112dbe..d30e533062 100644 --- a/indra/newview/llfloaterchatmentionpicker.cpp +++ b/indra/newview/llfloaterchatmentionpicker.cpp @@ -187,10 +187,10 @@ void LLFloaterChatMentionPicker::updateSessionID(LLUUID session_id) // [FS communication UI] } -void LLFloaterChatMentionPicker::updateAvatarList(uuid_vec_t& avatar_ids) +void LLFloaterChatMentionPicker::updateAvatarList(const uuid_vec_t& avatar_ids) { std::vector av_names; - for (auto& id : avatar_ids) + for (const auto& id : avatar_ids) { LLAvatarName av_name; LLAvatarNameCache::get(id, &av_name); diff --git a/indra/newview/llfloaterchatmentionpicker.h b/indra/newview/llfloaterchatmentionpicker.h index 2801ef3ac6..e63e4e4d21 100644 --- a/indra/newview/llfloaterchatmentionpicker.h +++ b/indra/newview/llfloaterchatmentionpicker.h @@ -43,7 +43,7 @@ public: static uuid_vec_t getParticipantIds(); static void updateSessionID(LLUUID session_id); - static void updateAvatarList(uuid_vec_t& avatar_ids); + static void updateAvatarList(const uuid_vec_t& avatar_ids); // [FS communication UI] static void updateParticipantSource(FSChatParticipants* source);