summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-06 21:38:57 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-06 21:38:57 +0000
commita4d224ff9316bf3b99e17f72f844d91e0ef80cc7 (patch)
tree4b9d374e333574104ac808e7e3b331c6bac41459 /indra/llui
parent346cabd557d921dea4f3a122df1e4f8eec4fc9f0 (diff)
EXT-5055 LLInstanceTracker promotes some dangerous patterns - detect them
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/lllayoutstack.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lllayoutstack.cpp b/indra/llui/lllayoutstack.cpp
index 1aaba88c49..dc79550eb4 100644
--- a/indra/llui/lllayoutstack.cpp
+++ b/indra/llui/lllayoutstack.cpp
@@ -816,7 +816,10 @@ void LLLayoutStack::calcMinExtents()
//static
void LLLayoutStack::updateClass()
{
- for (LLLayoutStack::instance_iter it = beginInstances(); it != endInstances(); ++it)
+ LLInstanceTrackerScopedGuard guard;
+ for (LLLayoutStack::instance_iter it = guard.beginInstances();
+ it != guard.endInstances();
+ ++it)
{
it->updateLayout();
}