summaryrefslogtreecommitdiff
path: root/indra/llui/lluictrlfactory.h
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2009-12-15 19:48:02 -0800
committerRick Pasetto <rick@lindenlab.com>2009-12-15 19:48:02 -0800
commita183fb9f5efd5c49a0da7442dd8b7202db6167e7 (patch)
treee5993a2de9a78d0d864c29c915e7490c31af2419 /indra/llui/lluictrlfactory.h
parente5c9fe005e2533b10ad9eeeec9041171f15247d0 (diff)
fix for gcc build
Diffstat (limited to 'indra/llui/lluictrlfactory.h')
-rw-r--r--indra/llui/lluictrlfactory.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/lluictrlfactory.h b/indra/llui/lluictrlfactory.h
index 6dab9521bb..9d26a9c9ef 100644
--- a/indra/llui/lluictrlfactory.h
+++ b/indra/llui/lluictrlfactory.h
@@ -201,7 +201,7 @@ public:
if (parent)
{
- S32 tab_group = params.tab_group.isProvided() ? params.tab_group() : parent->getLastTabGroup();
+ S32 tab_group = params.tab_group.isProvided() ? params.tab_group() : S32_MAX;
setCtrlParent(widget, parent, tab_group);
}
return widget;
@@ -311,7 +311,8 @@ fail:
T* widget = createWidget<T>(params, parent);
- createChildren(widget, node, typename T::child_registry_t::instance(), output_node);
+ typedef typename T::child_registry_t registry_t;
+ createChildren(widget, node, registry_t::instance(), output_node);
if (widget && !widget->postBuild())
{