[vlc-devel] commit: Simplification. ( Rémi Duraffort )

git version control git at videolan.org
Mon Jun 22 18:36:20 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jun 22 14:37:47 2009 +0200| [2b80cf3777cc27c0d870199bb58eaadd2b713d6f] | committer: Rémi Duraffort 

Simplification.

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

 modules/gui/qt4/components/extended_panels.cpp |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index 2be061f..51b6ecc 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -1045,7 +1045,6 @@ void Equalizer::updateUISliderValues( int i_preset )
 
 char * Equalizer::createValuesFromPreset( int i_preset )
 {
-    char *psz_values;
     QString values;
 
     /* Create the QString in Qt */
@@ -1053,10 +1052,7 @@ char * Equalizer::createValuesFromPreset( int i_preset )
         values += QString( " %1" ).arg( eqz_preset_10b[i_preset]->f_amp[i] );
 
     /* Convert it to char * */
-    if( !asprintf( &psz_values, "%s", values.toAscii().constData() ) )
-        return NULL;
-
-    return psz_values;
+    return strdup( values.toAscii().constData() );
 }
 
 void Equalizer::setCorePreset( int i_preset )




More information about the vlc-devel mailing list