[vlc-commits] Qt: spatializer: another useless indirect slot

Francois Cartegnie git at videolan.org
Wed Dec 26 16:35:00 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 26 16:33:31 2012 +0100| [16e6cbda348b58b0e483f903c4f0d6bcf3b1d5ac] | committer: Francois Cartegnie

Qt: spatializer: another useless indirect slot

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

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

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 521c34c..96cf821 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -1423,7 +1423,7 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent )
     spatCtrl[0]->setRange( 0, 11 );
 
     for( int i = 0; i < NUM_SP_CTRL; i++ )
-        CONNECT( spatCtrl[i], valueChanged( int ), this, setInitValues() );
+        CONNECT( spatCtrl[i], valueChanged( int ), this, setValues() );
 
     /* Write down initial values */
     vlc_object_t *p_aout = (vlc_object_t *)THEMIM->getAout();
@@ -1460,11 +1460,6 @@ void Spatializer::enable()
     playlist_EnableAudioFilter( THEPL, "spatializer", spatializerBox->isChecked() );
 }
 
-void Spatializer::setInitValues()
-{
-    setValues();
-}
-
 void Spatializer::setValues()
 {
     vlc_object_t *p_aout = (vlc_object_t *)THEMIM->getAout();
diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp
index da4084d..e766154 100644
--- a/modules/gui/qt4/components/extended_panels.hpp
+++ b/modules/gui/qt4/components/extended_panels.hpp
@@ -160,11 +160,9 @@ private:
     void addCallbacks( vlc_object_t * );
     intf_thread_t *p_intf;
 
-    void setValues();
-
 private slots:
     void enable();
-    void setInitValues();
+    void setValues();
 };
 
 class SyncWidget : public QWidget



More information about the vlc-commits mailing list