Commit 4ca4116e authored by Clément Stenac's avatar Clément Stenac

Don't use RTTI

parent 07371730
...@@ -57,7 +57,7 @@ void DialogsProvider::customEvent( QEvent *event ) ...@@ -57,7 +57,7 @@ void DialogsProvider::customEvent( QEvent *event )
{ {
if( event->type() == DialogEvent_Type ) if( event->type() == DialogEvent_Type )
{ {
DialogEvent *de = dynamic_cast<DialogEvent*>(event); DialogEvent *de = qobject_cast<DialogEvent*>(event);
switch( de->i_dialog ) switch( de->i_dialog )
{ {
case INTF_DIALOG_FILE: case INTF_DIALOG_FILE:
......
...@@ -311,7 +311,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input ) ...@@ -311,7 +311,7 @@ PLItem * PLModel::FindInner( PLItem *root, int i_id, bool b_input )
/************************* Updates handling *****************************/ /************************* Updates handling *****************************/
void PLModel::customEvent( QEvent *event ) void PLModel::customEvent( QEvent *event )
{ {
PLEvent *ple = dynamic_cast<PLEvent *>(event); PLEvent *ple = qobject_cast<PLEvent *>(event);
if( event->type() == ItemUpdate_Type ) if( event->type() == ItemUpdate_Type )
ProcessInputItemUpdate( ple->i_id ); ProcessInputItemUpdate( ple->i_id );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment