Use viewList_t and child_list_t in appropriate places.
Both types are currently the same, but soon they will be made different. Currently they are used a bit mixed up. This patch fixes that.
This commit is contained in:
@@ -56,9 +56,9 @@ void LLFloaterEditUI::navigateHierarchyButtonPressed(void* data)
|
||||
const LLView::child_list_t* viewChildren = view->getChildList();
|
||||
const LLView::child_list_t* parentChildren = parent->getChildList();
|
||||
//LLView::child_list_t::iterator
|
||||
std::list<LLView*>::const_iterator itor;
|
||||
std::list<LLView*>::size_type idx;
|
||||
std::list<LLView*>::size_type sidx;
|
||||
LLView::child_list_t::const_iterator itor;
|
||||
LLView::child_list_t::size_type idx;
|
||||
LLView::child_list_t::size_type sidx;
|
||||
for(idx = 0,itor = parentChildren->begin();itor!=parentChildren->end();itor++,idx++){
|
||||
if((*itor)==view)break;
|
||||
}
|
||||
|
||||
@@ -424,8 +424,8 @@ void LLPanelMediaHUD::setAlpha(F32 alpha)
|
||||
LLViewQuery query;
|
||||
|
||||
LLView* query_view = mMediaFocus ? getChildView("media_focused_controls") : getChildView("media_hover_controls");
|
||||
child_list_t children = query(query_view);
|
||||
for (child_list_iter_t child_iter = children.begin();
|
||||
viewList_t children = query(query_view);
|
||||
for (viewList_t::iterator child_iter = children.begin();
|
||||
child_iter != children.end(); ++child_iter)
|
||||
{
|
||||
LLUICtrl* ctrl = dynamic_cast<LLUICtrl*>(*child_iter);
|
||||
|
||||
Reference in New Issue
Block a user