diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-10-11 15:20:07 +0200 |
---|---|---|
committer | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2023-10-11 15:21:27 +0200 |
commit | ef2a7fee113c33387a0c7aff2aa862f715a564af (patch) | |
tree | c0971ecd4bad779db075a32fe91a0b2e6343275a /indra/newview | |
parent | c6a82a44f8c2efcad535c941bd00567a23f4fe7b (diff) |
SL-20432 Minor polishing in LLWearableItemsList::updateChangedItems
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llwearableitemslist.cpp | 15 |
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); + } } } |