Gui: Replace C cast
This commit is contained in:
committed by
Chris Hennes
parent
9ccb9eecb2
commit
0382f276a2
@@ -613,7 +613,7 @@ void WorkbenchGroup::refreshWorkbenchList()
|
||||
void WorkbenchGroup::customEvent( QEvent* e )
|
||||
{
|
||||
if (e->type() == QEvent::User) {
|
||||
auto ce = (Gui::WorkbenchActionEvent*)e;
|
||||
auto ce = static_cast<Gui::WorkbenchActionEvent*>(e);
|
||||
ce->action()->trigger();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user