diff options
author | Fawrsk <45524015+Fawrsk@users.noreply.github.com> | 2023-01-03 17:08:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-03 23:08:15 +0200 |
commit | 74a9280c698b4f88a46549923a2d717b82dd7ee2 (patch) | |
tree | 029f57168a5f69cb7eb60b21faddecdeadec0f26 /indra/llappearance/lllocaltextureobject.cpp | |
parent | 43496fe04e7dadae230da5b633a389ba0b7c0b0b (diff) |
SL-18893 Clean up for loops in llappearance to use C++11 range based for loops (#38)
Diffstat (limited to 'indra/llappearance/lllocaltextureobject.cpp')
-rw-r--r-- | indra/llappearance/lllocaltextureobject.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/llappearance/lllocaltextureobject.cpp b/indra/llappearance/lllocaltextureobject.cpp index 3f564ec3de..b66b51f4e4 100644 --- a/indra/llappearance/lllocaltextureobject.cpp +++ b/indra/llappearance/lllocaltextureobject.cpp @@ -95,9 +95,8 @@ LLTexLayer* LLLocalTextureObject::getTexLayer(U32 index) const LLTexLayer* LLLocalTextureObject::getTexLayer(const std::string &name) { - for( tex_layer_vec_t::iterator iter = mTexLayers.begin(); iter != mTexLayers.end(); iter++) + for(auto layer : mTexLayers) { - LLTexLayer *layer = *iter; if (layer->getName().compare(name) == 0) { return layer; |