Replace dynamic_cast with static_cast in Widget::getRoot()

This commit is contained in:
David Capello 2015-08-25 14:40:53 -03:00
parent 19951c6dd5
commit a79c9479b7

View File

@ -341,7 +341,7 @@ Window* Widget::getRoot()
while (widget) {
if (widget->type() == kWindowWidget)
return dynamic_cast<Window*>(widget);
return static_cast<Window*>(widget);
widget = widget->m_parent;
}