summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-11 15:20:07 +0200
committerAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-10-11 15:20:07 +0200
commitf02bc604e1f898d18d997fdf13c47ade1df853d0 (patch)
treea1321336400ff0a2d745b6b8c6ea145dad123974
parent2c4358de39a402af6dd835b8479673863c4fa2cc (diff)
SL-20432 Minor polishing in LLWearableItemsList::updateChangedItems
-rw-r--r--indra/newview/llwearableitemslist.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/indra/newview/llwearableitemslist.cpp b/indra/newview/llwearableitemslist.cpp
index a684cdc86e..83d2b16a86 100644
--- a/indra/newview/llwearableitemslist.cpp
+++ b/indra/newview/llwearableitemslist.cpp
@@ -784,6 +784,7 @@ void LLWearableItemsList::updateChangedItems(const uuid_vec_t& changed_items_uui
if (changed_items_uuids.empty())
return;
+ uuid_vec_t::const_iterator uuids_begin = changed_items_uuids.begin(), uuids_end = changed_items_uuids.end();
pairs_const_iterator_t pairs_iter = getItemPairs().begin(), pairs_end = getItemPairs().end();
while (pairs_iter != pairs_end)
{
@@ -797,16 +798,10 @@ void LLWearableItemsList::updateChangedItems(const uuid_vec_t& changed_items_uui
continue;
LLUUID linked_uuid = inv_item->getLinkedUUID();
-
- uuid_vec_t::const_iterator uuids_iter = changed_items_uuids.begin(), uuids_end = changed_items_uuids.end();
- while (uuids_iter != uuids_end)
- {
- if (linked_uuid == *(uuids_iter++))
- {
- item->setNeedsRefresh(true);
- break;
- }
- }
+ if (std::find(uuids_begin, uuids_end, linked_uuid) != uuids_end)
+ {
+ item->setNeedsRefresh(true);
+ }
}
}