diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-14 15:04:42 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-14 15:05:50 (GMT) |
commit | 3c8f4512df30dee4a867a498fff6d2b27b881e4b (patch) | |
tree | f6cec8256c40fe72514cfbd304f1eb85bd916e4d /src/3rdparty/phonon/ds9 | |
parent | 533807d5c06be28694665fc889ec1942c59ab705 (diff) | |
download | Qt-3c8f4512df30dee4a867a498fff6d2b27b881e4b.zip Qt-3c8f4512df30dee4a867a498fff6d2b27b881e4b.tar.gz Qt-3c8f4512df30dee4a867a498fff6d2b27b881e4b.tar.bz2 |
QVariant: more work on avoinding conversion between float and doubles
we call QVariant::toReal instead of toDouble when needed
Diffstat (limited to 'src/3rdparty/phonon/ds9')
-rw-r--r-- | src/3rdparty/phonon/ds9/effect.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/3rdparty/phonon/ds9/effect.cpp b/src/3rdparty/phonon/ds9/effect.cpp index dc4ac3d..104a3c1 100644 --- a/src/3rdparty/phonon/ds9/effect.cpp +++ b/src/3rdparty/phonon/ds9/effect.cpp @@ -138,8 +138,7 @@ namespace Phonon ComPointer<IMediaParams> params(filter, IID_IMediaParams); Q_ASSERT(params); - MP_DATA data = float(v.toDouble()); - params->SetParam(p.id(), data); + params->SetParam(p.id(), v.toFloat()); } } |