summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorsimon <none@none>2013-08-26 14:16:28 -0700
committersimon <none@none>2013-08-26 14:16:28 -0700
commit3f5e6280dbee3414d464a96a8d9d037c30adb123 (patch)
tree54d2fa50ab579c20375f8c3fb4b3e0d9f6b9d4f8 /indra
parentf638fc803dbd53985253237efb12b1707f42d49d (diff)
Tweak MAINT-3046 fix for faster remove_() performance
Diffstat (limited to 'indra')
-rwxr-xr-xindra/llcommon/llinstancetracker.h7
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: