mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-14 03:40:55 +00:00
Replace dynamic_cast with static_cast in Widget::getRoot()
This commit is contained in:
parent
19951c6dd5
commit
a79c9479b7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user