[vlc-commits] Qt: rename variable for consistency

Jean-Baptiste Kempf git at videolan.org
Mon May 9 11:56:59 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May  9 11:55:32 2011 +0200| [1d9c69bb4a3f12394a471576cae028526d1d319c] | committer: Jean-Baptiste Kempf

Qt: rename variable for consistency

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

 modules/gui/qt4/components/playlist/selector.cpp |    4 ++--
 modules/gui/qt4/components/playlist/selector.hpp |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/selector.cpp b/modules/gui/qt4/components/playlist/selector.cpp
index c65ce45..6eec384 100644
--- a/modules/gui/qt4/components/playlist/selector.cpp
+++ b/modules/gui/qt4/components/playlist/selector.cpp
@@ -193,7 +193,7 @@ void PLSelector::createItems()
     ml->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_ML ) );
 
     /* SQL ML */
-    QTreeWidgetItem *sql_ml =  addItem( SQL_ML, "SQL Media Library" )->treeItem();
+    QTreeWidgetItem *sql_ml =  addItem( SQL_ML_TYPE, "SQL Media Library" )->treeItem();
 
     /* SD nodes */
     QTreeWidgetItem *mycomp = addItem( CATEGORY_TYPE, N_("My Computer") )->treeItem();
@@ -274,7 +274,7 @@ void PLSelector::setSource( QTreeWidgetItem *item )
         if( !sd_loaded )
             playlist_ServicesDiscoveryAdd( THEPL, qtu( qs ) );
     }
-    else if( i_type == SQL_ML )
+    else if( i_type == SQL_ML_TYPE )
     {
         emit categoryActivated( NULL, true );
         return;
diff --git a/modules/gui/qt4/components/playlist/selector.hpp b/modules/gui/qt4/components/playlist/selector.hpp
index 26c3354..a9a3d42 100644
--- a/modules/gui/qt4/components/playlist/selector.hpp
+++ b/modules/gui/qt4/components/playlist/selector.hpp
@@ -44,7 +44,7 @@ enum SelectorItemType {
     CATEGORY_TYPE,
     SD_TYPE,
     PL_ITEM_TYPE,
-    SQL_ML
+    SQL_ML_TYPE,
 };
 
 enum SpecialData {



More information about the vlc-commits mailing list