Use dynamic cast instead of c-style cast in LLMultiFloater; found by Cinder Roxley

Ansariel 2014-08-26 20:42:38 +02:00
parent 1477167584
commit 4f7cac1d40
1 changed files with 8 additions and 1 deletions

View File

@ -344,7 +344,14 @@ void LLMultiFloater::removeFloater(LLFloater* floaterp)
updateResizeLimits();
tabOpen((LLFloater*)mTabContainer->getCurrentPanel(), false);
// <FS> Use dynamic cast instead of c-style cast; found by Cinder Roxley
//tabOpen((LLFloater*)mTabContainer->getCurrentPanel(), false);
LLFloater* tab_floaterp = dynamic_cast<LLFloater*>(mTabContainer->getCurrentPanel());
if (tab_floaterp)
{
tabOpen(tab_floaterp, false);
}
// </FS>
}
void LLMultiFloater::tabOpen(LLFloater* opened_floater, bool from_click)