summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-07-09 10:19:02 -0400
committerLoren Shih <seraph@lindenlab.com>2010-07-09 10:19:02 -0400
commit9ae6672a15ae64dba1d2af774dcde26700fb6126 (patch)
tree37595116bd1a30ad54e4b6d43482c1d659ddc917
parent074157c1fe124e7a1bef61b1db01234a8603534b (diff)
EXT-8221 WIP Crash in LLGesture::notifyObservers
Code cleanup for help with diagnosing this issue.
-rw-r--r--indra/newview/llgesturemgr.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp
index 6ffd534a53..160dd0b959 100644
--- a/indra/newview/llgesturemgr.cpp
+++ b/indra/newview/llgesturemgr.cpp
@@ -1174,12 +1174,11 @@ void LLGestureMgr::notifyObservers()
{
lldebugs << "LLGestureMgr::notifyObservers" << llendl;
- std::vector<LLGestureManagerObserver*> observers = mObservers;
-
- std::vector<LLGestureManagerObserver*>::iterator it;
- for (it = observers.begin(); it != observers.end(); ++it)
+ for(std::vector<LLGestureManagerObserver*>::iterator iter = mObservers.begin();
+ iter != mObservers.end();
+ ++iter)
{
- LLGestureManagerObserver* observer = *it;
+ LLGestureManagerObserver* observer = (*iter);
observer->changed();
}
}