From b1be8bb7f3bcc16ae523ce9670517f3a9567f9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Wed, 9 Oct 2019 20:13:16 -0400 Subject: [PATCH] Clean up a section of RLVa code --- indra/newview/rlvcommon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/rlvcommon.cpp b/indra/newview/rlvcommon.cpp index c3dc38ebe..7410c5897 100644 --- a/indra/newview/rlvcommon.cpp +++ b/indra/newview/rlvcommon.cpp @@ -462,8 +462,8 @@ bool RlvUtil::isNearbyAgent(const LLUUID& idAgent) uuid_vec_t idAgents; LLWorld::getInstance()->getAvatars(&idAgents, NULL); - for (int idxAgent = 0, cntAgent = idAgents.size(); idxAgent < cntAgent; idxAgent++) - if (idAgents[idxAgent] == idAgent) + for (const auto& id : idAgents) + if (id == idAgent) return true; } return false;