summaryrefslogtreecommitdiff
path: root/indra/llcommon/llinitdestroyclass.cpp
diff options
context:
space:
mode:
authorakleshchev <117672381+akleshchev@users.noreply.github.com>2023-01-10 11:38:34 +0200
committerGitHub <noreply@github.com>2023-01-10 11:38:34 +0200
commit9c250f1a9ee2e49505a35513cb88de54e2694e6c (patch)
tree26c8c15b117bc183386af1ee6e8b6617708aeba7 /indra/llcommon/llinitdestroyclass.cpp
parentd0f115ae093e8268da2a3245d6cb2f3bcc544f1c (diff)
parent8767e6995b0c9b9ed23e07f63d290a1da8c70f17 (diff)
SL-18893 Cleanup for loops in llcommon to use C++11 range based for loops (#44)
* Cleanup for loops in llcommon to use C++11 range based for loops * Eliminate needless copies
Diffstat (limited to 'indra/llcommon/llinitdestroyclass.cpp')
-rw-r--r--indra/llcommon/llinitdestroyclass.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/llcommon/llinitdestroyclass.cpp b/indra/llcommon/llinitdestroyclass.cpp
index e6382a7924..e3b9e6d099 100644
--- a/indra/llcommon/llinitdestroyclass.cpp
+++ b/indra/llcommon/llinitdestroyclass.cpp
@@ -21,10 +21,9 @@
void LLCallbackRegistry::fireCallbacks() const
{
- for (FuncList::const_iterator fi = mCallbacks.begin(), fe = mCallbacks.end();
- fi != fe; ++fi)
+ for (FuncList::value_type pair : mCallbacks)
{
- LL_INFOS("LLInitDestroyClass") << "calling " << fi->first << "()" << LL_ENDL;
- fi->second();
+ LL_INFOS("LLInitDestroyClass") << "calling " << pair.first << "()" << LL_ENDL;
+ pair.second();
}
}