diff options
author | simon <none@none> | 2013-08-26 14:16:28 -0700 |
---|---|---|
committer | simon <none@none> | 2013-08-26 14:16:28 -0700 |
commit | 3f5e6280dbee3414d464a96a8d9d037c30adb123 (patch) | |
tree | 54d2fa50ab579c20375f8c3fb4b3e0d9f6b9d4f8 | |
parent | f638fc803dbd53985253237efb12b1707f42d49d (diff) |
Tweak MAINT-3046 fix for faster remove_() performance
-rwxr-xr-x | indra/llcommon/llinstancetracker.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llcommon/llinstancetracker.h b/indra/llcommon/llinstancetracker.h index 7ef7d101db..55187d8325 100755 --- a/indra/llcommon/llinstancetracker.h +++ b/indra/llcommon/llinstancetracker.h @@ -212,8 +212,11 @@ private: } void remove_() { - if (getMap_().find(mInstanceKey) != getMap_().end()) - getMap_().erase(mInstanceKey); + typename InstanceMap::iterator iter = getMap_().find(mInstanceKey); + if (iter != getMap_().end()) + { + getMap_().erase(iter); + } } private: |