[vlc-devel] commit: Qt: remove unneeded code. (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Jan 16 18:45:34 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jan 16 17:59:10 2009 +0100| [23f5a2f25e35bb5a45fe61fce23e82d8b2ff445c] | committer: Jean-Baptiste Kempf 

Qt: remove unneeded code.

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

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

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 60747be..d81ec55 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -998,7 +998,7 @@ BoolConfigControl::BoolConfigControl( vlc_object_t *_p_this,
                    VIntConfigControl( _p_this, _p_item )
 {
     checkbox = _checkbox;
-    label = _label;
+    VLC_UNUSED( _label );
     finish();
 }
 
@@ -1007,8 +1007,6 @@ void BoolConfigControl::finish()
     checkbox->setCheckState( p_item->value.i == true ? Qt::Checked
                                                         : Qt::Unchecked );
     checkbox->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) );
-    if( label )
-        label->setToolTip( formatTooltip(qtr(p_item->psz_longtext)) );
 }
 
 int BoolConfigControl::getValue()
diff --git a/modules/gui/qt4/components/preferences_widgets.hpp b/modules/gui/qt4/components/preferences_widgets.hpp
index 39e2baf..90cb3fc 100644
--- a/modules/gui/qt4/components/preferences_widgets.hpp
+++ b/modules/gui/qt4/components/preferences_widgets.hpp
@@ -192,7 +192,6 @@ public:
     virtual int getType() { return CONFIG_ITEM_BOOL; }
 private:
     QCheckBox *checkbox;
-    QLabel *label;
     void finish();
 };
 




More information about the vlc-devel mailing list