summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcallbacklist.cpp
diff options
context:
space:
mode:
authorFawrsk <fawrsk@gmail.com>2023-01-07 00:38:12 -0400
committerFawrsk <fawrsk@gmail.com>2023-01-07 00:38:12 -0400
commit9e743c99fb69db5694c388ae33656c62e3fa0b8e (patch)
treec981c998d0439d8bd48ce98123c19de8a9a27753 /indra/llcommon/llcallbacklist.cpp
parentd0f115ae093e8268da2a3245d6cb2f3bcc544f1c (diff)
Cleanup for loops in llcommon to use C++11 range based for loops
Diffstat (limited to 'indra/llcommon/llcallbacklist.cpp')
-rw-r--r--indra/llcommon/llcallbacklist.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/llcommon/llcallbacklist.cpp b/indra/llcommon/llcallbacklist.cpp
index 541ff75ee4..aea19c6424 100644
--- a/indra/llcommon/llcallbacklist.cpp
+++ b/indra/llcommon/llcallbacklist.cpp
@@ -109,10 +109,9 @@ void LLCallbackList::deleteAllFunctions()
void LLCallbackList::callFunctions()
{
- for (callback_list_t::iterator iter = mCallbackList.begin(); iter != mCallbackList.end(); )
+ for (callback_list_t::value_type pair : mCallbackList)
{
- callback_list_t::iterator curiter = iter++;
- curiter->first(curiter->second);
+ pair.first(pair.second);
}
}