Qt4 - remove an unnecessary cast
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 Jan 2008 07:18:11 +0000 (07:18 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 16 Jan 2008 07:18:11 +0000 (07:18 +0000)
modules/gui/qt4/components/playlist/playlist.cpp

index 89daa8f..0b4d1dd 100644 (file)
@@ -59,11 +59,10 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QSettings *settings, QWidge
     leftW->addWidget( art );
 
     /* Initialisation of the playlist */
-    playlist_item_t *p_root = playlist_GetPreferredNode( THEPL,
-                                                THEPL->p_local_category );
+    playlist_item_t *p_root =
+                  playlist_GetPreferredNode( THEPL, THEPL->p_local_category );
 
-    rightPanel = qobject_cast<PLPanel *>( new StandardPLPanel( this,
-                              p_intf, THEPL, p_root ) );
+    rightPanel = new StandardPLPanel( this, p_intf, THEPL, p_root );
 
     /* Connect the activation of the selector to a redefining of the PL */
     CONNECT( selector, activated( int ), rightPanel, setRoot( int ) );