]> git.sesse.net Git - vlc/commitdiff
new cannot return NULL per ISO C++
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 9 Mar 2009 20:23:37 +0000 (22:23 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 9 Mar 2009 20:23:37 +0000 (22:23 +0200)
modules/gui/qt4/input_manager.cpp

index 14490b676a362d36c10239f3eec3aaf796bf70c3..b323668738f22d345749c1b9b58a148a2e94678d 100644 (file)
@@ -346,14 +346,14 @@ static int InputEvent( vlc_object_t *p_this, const char *,
         QApplication::postEvent( im, event );
     return VLC_SUCCESS;
 }
+
 static int VbiEvent( vlc_object_t *, const char *,
                      vlc_value_t, vlc_value_t, void *param )
 {
     InputManager *im = (InputManager*)param;
     IMEvent *event = new IMEvent( ItemTeletextChanged_Type, 0 );
 
-    if( event )
-        QApplication::postEvent( im, event );
+    QApplication::postEvent( im, event );
     return VLC_SUCCESS;
 }