[vlc-devel] commit: new cannot return NULL per ISO C++ ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Mar 9 21:24:17 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar  9 22:23:37 2009 +0200| [e0d63ad30ae0e9e98b419c25e4444dcf2b397d08] | committer: Rémi Denis-Courmont 

new cannot return NULL per ISO C++

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e0d63ad30ae0e9e98b419c25e4444dcf2b397d08
---

 modules/gui/qt4/input_manager.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 14490b6..b323668 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -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;
 }
 




More information about the vlc-devel mailing list