summaryrefslogtreecommitdiff
path: root/indra/llappearance/llavatarappearancedefines.cpp
diff options
context:
space:
mode:
authorFawrsk <fawrsk@gmail.com>2023-01-10 05:43:27 -0400
committerGitHub <noreply@github.com>2023-01-10 11:43:27 +0200
commit7419037ef6e8a5497283278baa8582b264d3aefa (patch)
treed4486cea253918ce1ff533148a4b7f8d9ddc2688 /indra/llappearance/llavatarappearancedefines.cpp
parent9c250f1a9ee2e49505a35513cb88de54e2694e6c (diff)
SL-18893 Fixes for pull requests #38, #41, and #42 (#46)
Eliminate unnecessary copies, and remove uses of auto
Diffstat (limited to 'indra/llappearance/llavatarappearancedefines.cpp')
-rw-r--r--indra/llappearance/llavatarappearancedefines.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llappearance/llavatarappearancedefines.cpp b/indra/llappearance/llavatarappearancedefines.cpp
index 5ab3f92b31..8759c387e8 100644
--- a/indra/llappearance/llavatarappearancedefines.cpp
+++ b/indra/llappearance/llavatarappearancedefines.cpp
@@ -183,14 +183,14 @@ LLAvatarAppearanceDictionary::~LLAvatarAppearanceDictionary()
// map it to the baked texture.
void LLAvatarAppearanceDictionary::createAssociations()
{
- for (const auto& baked_pair : mBakedTextures)
+ for (BakedTextures::value_type& baked_pair : mBakedTextures)
{
const EBakedTextureIndex baked_index = baked_pair.first;
const BakedEntry *dict = baked_pair.second;
// For each texture that this baked texture index affects, associate those textures
// with this baked texture index.
- for (const auto local_texture_index : dict->mLocalTextures)
+ for (const ETextureIndex local_texture_index : dict->mLocalTextures)
{
mTextures[local_texture_index]->mIsUsedByBakedTexture = true;
mTextures[local_texture_index]->mBakedTextureIndex = baked_index;