diff options
| author | Richard Nelson <none@none> | 2010-08-16 15:00:51 -0700 |
|---|---|---|
| committer | Richard Nelson <none@none> | 2010-08-16 15:00:51 -0700 |
| commit | c20bd2dfee1068d5a23eef9a10d21c2035c0b324 (patch) | |
| tree | f6ff89910ea6ee51ff654e1f604476100c9ceedd /indra/newview/llinventorylistitem.cpp | |
| parent | 94e406157d0b133d51b5dbb95aab296b46eae10e (diff) | |
cleaned up LLUICtrlFactory...
removed redundant functionality
moved buildPanel to LLPanel
Diffstat (limited to 'indra/newview/llinventorylistitem.cpp')
| -rw-r--r-- | indra/newview/llinventorylistitem.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llinventorylistitem.cpp b/indra/newview/llinventorylistitem.cpp index b1f5b3be2f..b3d658b0cf 100644 --- a/indra/newview/llinventorylistitem.cpp +++ b/indra/newview/llinventorylistitem.cpp @@ -307,7 +307,9 @@ LLPanelInventoryListItemBase::LLPanelInventoryListItemBase(LLViewerInventoryItem } else { - mIconCtrl = dynamic_cast<LLIconCtrl*>(LLUICtrlFactory::createDefaultWidget<LLIconCtrl>("item_icon")); + LLIconCtrl::Params icon_params; + icon_params.name = "item_icon"; + mIconCtrl = LLUICtrlFactory::create<LLIconCtrl>(icon_params); } LLTextBox::Params text_params(params.item_name); @@ -320,7 +322,9 @@ LLPanelInventoryListItemBase::LLPanelInventoryListItemBase(LLViewerInventoryItem } else { - mTitleCtrl = dynamic_cast<LLTextBox*>(LLUICtrlFactory::createDefaultWidget<LLTextBox>("item_title")); + LLTextBox::Params text_aprams; + text_params.name = "item_title"; + mTitleCtrl = LLUICtrlFactory::create<LLTextBox>(text_params); } } |
