[vlc-commits] Qt: Compressor: remove useless method parameter

Francois Cartegnie git at videolan.org
Tue Jan 1 15:17:03 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 31 21:44:08 2012 +0100| [ad218763634228041623d7bdd91eba39a48829be] | committer: Francois Cartegnie

Qt: Compressor: remove useless method parameter

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

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

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index e7be82b..4048679 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -1315,7 +1315,7 @@ Compressor::Compressor( intf_thread_t *_p_intf, QWidget *_parent )
         compressorBox->setChecked( false );
 
     free( psz_af );
-    updateSliders( controlVars );
+    updateSliders();
     setValues();
 }
 
@@ -1324,14 +1324,14 @@ void Compressor::enable()
     playlist_EnableAudioFilter( THEPL, "compressor", compressorBox->isChecked() );
 }
 
-void Compressor::updateSliders( float * p_controlVars )
+void Compressor::updateSliders()
 {
     for( int i = 0 ; i < NUM_CP_CTRL ; i++ )
     {
-        if( oldControlVars[i] != p_controlVars[i] )
+        if( oldControlVars[i] != controlVars[i] )
         {
             compCtrl[i]->setValue(
-                    (int)( p_controlVars[i] / comp_controls[i].f_resolution ) );
+                    (int)( controlVars[i] / comp_controls[i].f_resolution ) );
         }
     }
 }
diff --git a/modules/gui/qt4/components/extended_panels.hpp b/modules/gui/qt4/components/extended_panels.hpp
index 0b8bc3c..17829a8 100644
--- a/modules/gui/qt4/components/extended_panels.hpp
+++ b/modules/gui/qt4/components/extended_panels.hpp
@@ -143,7 +143,7 @@ private:
 
     intf_thread_t *p_intf;
 
-    void updateSliders(float *);
+    void updateSliders();
 
 private slots:
     void enable();



More information about the vlc-commits mailing list