mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 17:03:43 +02:00
simplify for-loop format
This commit is contained in:
parent
deccc54965
commit
e4436d264a
1 changed files with 1 additions and 2 deletions
|
@ -236,8 +236,7 @@ void AvatarMixerSlave::broadcastAvatarDataToAgent(const SharedNodePointer& node)
|
|||
|
||||
// ignore or sort
|
||||
const AvatarSharedPointer& thisAvatar = nodeData->getAvatarSharedPointer();
|
||||
for (size_t i = 0; i < avatarsToSort.size(); ++i) {
|
||||
const AvatarSharedPointer& avatar = avatarsToSort[i];
|
||||
for (const auto& avatar : avatarsToSort) {
|
||||
if (avatar == thisAvatar) {
|
||||
// don't echo updates to self
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue