[vlc-devel] commit: qt4: no need for a static_cast to the parent class. ( Rémi Duraffort )
git version control
git at videolan.org
Sun Jan 25 13:41:11 CET 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Jan 25 13:40:52 2009 +0100| [b91b84d6f18cc8855cc9349ff6999b26247ef38d] | committer: Rémi Duraffort
qt4: no need for a static_cast to the parent class.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b91b84d6f18cc8855cc9349ff6999b26247ef38d
---
modules/gui/qt4/components/controller.cpp | 6 +++---
.../gui/qt4/components/playlist/playlist_model.cpp | 12 ++++++------
modules/gui/qt4/input_manager.cpp | 10 +++++-----
modules/gui/qt4/main_interface.cpp | 4 ++--
modules/gui/qt4/qt4.cpp | 2 +-
5 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index fc9f876..15d1500 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -1035,7 +1035,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
/* Force fs hidding */
IMEvent *eHide = new IMEvent( FullscreenControlHide_Type, 0 );
- QApplication::postEvent( this, static_cast<QEvent *>(eHide) );
+ QApplication::postEvent( this, eHide );
}
vlc_mutex_unlock( &lock );
}
@@ -1062,11 +1062,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *p_vout, int i_mous
{
/* Show event */
IMEvent *eShow = new IMEvent( FullscreenControlShow_Type, 0 );
- QApplication::postEvent( this, static_cast<QEvent *>(eShow) );
+ QApplication::postEvent( this, eShow );
/* Plan hide event */
IMEvent *eHide = new IMEvent( FullscreenControlPlanHide_Type, 0 );
- QApplication::postEvent( this, static_cast<QEvent *>(eHide) );
+ QApplication::postEvent( this, eHide );
}
}
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 44fc181..d2e07ce 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -943,7 +943,7 @@ static int PlaylistChanged( vlc_object_t *p_this, const char *psz_variable,
{
PLModel *p_model = (PLModel *) param;
PLEvent *event = new PLEvent( PLUpdate_Type, 0 );
- QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+ QApplication::postEvent( p_model, event );
return VLC_SUCCESS;
}
@@ -952,9 +952,9 @@ static int PlaylistNext( vlc_object_t *p_this, const char *psz_variable,
{
PLModel *p_model = (PLModel *) param;
PLEvent *event = new PLEvent( ItemUpdate_Type, oval.i_int );
- QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+ QApplication::postEvent( p_model, event );
event = new PLEvent( ItemUpdate_Type, nval.i_int );
- QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+ QApplication::postEvent( p_model, event );
return VLC_SUCCESS;
}
@@ -963,7 +963,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_variable,
{
PLModel *p_model = (PLModel *) param;
PLEvent *event = new PLEvent( ItemUpdate_Type, nval.i_int );
- QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+ QApplication::postEvent( p_model, event );
return VLC_SUCCESS;
}
@@ -972,7 +972,7 @@ static int ItemDeleted( vlc_object_t *p_this, const char *psz_variable,
{
PLModel *p_model = (PLModel *) param;
PLEvent *event = new PLEvent( ItemDelete_Type, nval.i_int );
- QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+ QApplication::postEvent( p_model, event );
return VLC_SUCCESS;
}
@@ -984,7 +984,7 @@ static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
memcpy( p_add, nval.p_address, sizeof( playlist_add_t ) );
PLEvent *event = new PLEvent( p_add );
- QApplication::postEvent( p_model, static_cast<QEvent*>(event) );
+ QApplication::postEvent( p_model, event );
return VLC_SUCCESS;
}
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 711cb6c..2dc83e7 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -277,7 +277,7 @@ static int ItemChanged( vlc_object_t *p_this, const char *psz_var,
InputManager *im = (InputManager*)param;
IMEvent *event = new IMEvent( ItemChanged_Type, newval.i_int );
- QApplication::postEvent( im, static_cast<QEvent*>(event) );
+ QApplication::postEvent( im, event );
return VLC_SUCCESS;
}
@@ -363,7 +363,7 @@ static int InputEvent( vlc_object_t *p_this, const char *,
}
if( event )
- QApplication::postEvent( im, static_cast<QEvent*>(event) );
+ QApplication::postEvent( im, event );
return VLC_SUCCESS;
}
void InputManager::UpdatePosition()
@@ -841,7 +841,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
- customEvent( static_cast<QEvent*>(event) );
+ customEvent( event );
delete event;
}
@@ -956,7 +956,7 @@ static int PLItemChanged( vlc_object_t *p_this, const char *psz_var,
MainInputManager *mim = (MainInputManager*)param;
IMEvent *event = new IMEvent( ItemChanged_Type, newval.i_int );
- QApplication::postEvent( mim, static_cast<QEvent*>(event) );
+ QApplication::postEvent( mim, event );
return VLC_SUCCESS;
}
@@ -966,7 +966,7 @@ static int VolumeChanged( vlc_object_t *p_this, const char *psz_var,
MainInputManager *mim = (MainInputManager*)param;
IMEvent *event = new IMEvent( VolumeChanged_Type, newval.i_int );
- QApplication::postEvent( mim, static_cast<QEvent*>(event) );
+ QApplication::postEvent( mim, event );
return VLC_SUCCESS;
}
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index e1e3615..8f54f33 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -597,7 +597,7 @@ void MainInterface::toggleFSC()
if( !fullscreenControls ) return;
IMEvent *eShow = new IMEvent( FullscreenControlToggle_Type, 0 );
- QApplication::postEvent( fullscreenControls, static_cast<QEvent *>(eShow) );
+ QApplication::postEvent( fullscreenControls, eShow );
}
void MainInterface::debug()
@@ -1174,7 +1174,7 @@ static int InteractCallback( vlc_object_t *p_this,
intf_dialog_args_t *p_arg = new intf_dialog_args_t;
p_arg->p_dialog = (interaction_dialog_t *)(new_val.p_address);
DialogEvent *event = new DialogEvent( INTF_DIALOG_INTERACTION, 0, p_arg );
- QApplication::postEvent( THEDP, static_cast<QEvent*>(event) );
+ QApplication::postEvent( THEDP, event );
return VLC_SUCCESS;
}
diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 1f5bdd2..3f301f2 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -485,7 +485,7 @@ static void ShowDialog( intf_thread_t *p_intf, int i_dialog_event, int i_arg,
{
VLC_UNUSED( p_intf );
DialogEvent *event = new DialogEvent( i_dialog_event, i_arg, p_arg );
- QApplication::postEvent( THEDP, static_cast<QEvent*>(event) );
+ QApplication::postEvent( THEDP, event );
}
/**
More information about the vlc-devel
mailing list