summaryrefslogtreecommitdiff
path: root/indra/llui/lluictrlfactory.h
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2009-11-10 12:58:10 -0800
committerRick Pasetto <rick@lindenlab.com>2009-11-10 12:58:10 -0800
commitcaa468a5f184a1c2dd2cd1f2c4a7aafc5acf05d0 (patch)
tree1ebafb18e2c8b271b0ce89acd2c1a3a78698a143 /indra/llui/lluictrlfactory.h
parent595000c19c0499a0b612c272cd097a8f1ca578bd (diff)
fix for gcc
Diffstat (limited to 'indra/llui/lluictrlfactory.h')
-rw-r--r--indra/llui/lluictrlfactory.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llui/lluictrlfactory.h b/indra/llui/lluictrlfactory.h
index 0ccd3047f6..8a9c9e23c1 100644
--- a/indra/llui/lluictrlfactory.h
+++ b/indra/llui/lluictrlfactory.h
@@ -188,10 +188,15 @@ public:
T* widget = new T(params);
widget->initFromParams(params);
if (parent)
- parent->addChild(widget);
+ {
+ connect(parent, widget);
+ }
return widget;
}
+ // fix for gcc template instantiation annoyance
+ static void connect(LLView* parent, LLView* child);
+
LLView* createFromXML(LLXMLNodePtr node, LLView* parent, const std::string& filename, const widget_registry_t&, LLXMLNodePtr output_node );
template<typename T>