[vlc-devel] commit: Unused variables ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Dec 5 11:59:26 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Dec  5 12:32:47 2009 +0200| [f41c7c34badd923b0cb2d1fd0d503b2aa38078b0] | committer: Rémi Denis-Courmont 

Unused variables

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

 modules/gui/qt4/menus.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 2c9f3f8..c5e17de 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -401,11 +401,13 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
                             MainInterface *mi,
                             bool with_intf )
 {
+    QAction *action;
+
     assert( mi );
 
     QMenu *menu = new QMenu( qtr( "V&iew" ), mi );
 
-    QAction *act = menu->addAction( QIcon( ":/menu/playlist_menu" ),
+    menu->addAction( QIcon( ":/menu/playlist_menu" ),
             qtr( "Play&list" ), mi,
             SLOT( togglePlaylist() ), qtr( "Ctrl+L" ) );
 
@@ -425,7 +427,7 @@ QMenu *QVLCMenu::ViewMenu( intf_thread_t *p_intf,
     }
 
     /* Minimal View */
-    QAction *action = menu->addAction( qtr( "Mi&nimal View" ) );
+    action = menu->addAction( qtr( "Mi&nimal View" ) );
     action->setShortcut( qtr( "Ctrl+H" ) );
     action->setCheckable( true );
     action->setChecked( !with_intf &&
@@ -960,7 +962,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
     if( !b_isFullscreen )
     {
         QMenu *submenu = new QMenu( qtr( "Interface" ), menu );
-        QMenu *tools = ToolsMenu( submenu );
+        /*QMenu *tools =*/ ToolsMenu( submenu );
         submenu->addSeparator();
 
         /* In skins interface, append some items */




More information about the vlc-devel mailing list