[vlc-commits] Qt4: don't keep reference to toAscii() temporary array
Rémi Denis-Courmont
git at videolan.org
Sat Jun 18 11:58:33 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 18 12:57:56 2011 +0300| [cf190075bda0c39e2a203104d9095c450e283def] | committer: Rémi Denis-Courmont
Qt4: don't keep reference to toAscii() temporary array
(See also previous commit)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf190075bda0c39e2a203104d9095c450e283def
---
modules/gui/qt4/components/extended_panels.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/extended_panels.cpp b/modules/gui/qt4/components/extended_panels.cpp
index cfa162c..2899c26 100644
--- a/modules/gui/qt4/components/extended_panels.cpp
+++ b/modules/gui/qt4/components/extended_panels.cpp
@@ -1041,13 +1041,12 @@ void Equalizer::setCoreBands()
band_texts[i]->setText( band_frequencies[i] + "\n" + val + "dB" );
values += " " + val;
}
- const char *psz_values = values.toAscii().constData();
aout_instance_t *p_aout = THEMIM->getAout();
if( p_aout )
{
//delCallbacks( p_aout );
- var_SetString( p_aout, "equalizer-bands", psz_values );
+ var_SetString( p_aout, "equalizer-bands", qtu( values ) );
//addCallbacks( p_aout );
vlc_object_release( p_aout );
}
More information about the vlc-commits
mailing list