summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2009-12-08 18:26:17 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-11 15:52:45 (GMT)
commitaefcf35b4e4dd62771b9fe531c84d35e13f2c660 (patch)
tree2a78237f4287212afbc4c0c5494f1c7d5f213938 /src/3rdparty
parent1a7234e3a27b592565241e9044919f7842fc5f08 (diff)
downloadQt-aefcf35b4e4dd62771b9fe531c84d35e13f2c660.zip
Qt-aefcf35b4e4dd62771b9fe531c84d35e13f2c660.tar.gz
Qt-aefcf35b4e4dd62771b9fe531c84d35e13f2c660.tar.bz2
Removed unnecessary check in Phonon MMF backend
This pointer is guaranteed not to be null by the check in AbstractAudioEffect::setParameterValue. Task-number: QTBUG-4659 Reviewed-by: trustme
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/phonon/mmf/audioequalizer.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/3rdparty/phonon/mmf/audioequalizer.cpp b/src/3rdparty/phonon/mmf/audioequalizer.cpp
index ab95f30..e3b1ab3 100644
--- a/src/3rdparty/phonon/mmf/audioequalizer.cpp
+++ b/src/3rdparty/phonon/mmf/audioequalizer.cpp
@@ -40,11 +40,9 @@ AudioEqualizer::AudioEqualizer(QObject *parent, const QList<EffectParameter>& pa
void AudioEqualizer::parameterChanged(const int pid,
const QVariant &value)
{
- if (m_effect.data()) {
- const int band = pid;
- const qreal level = value.toReal();
- setBandLevel(band, level);
- }
+ const int band = pid;
+ const qreal level = value.toReal();
+ setBandLevel(band, level);
}
void AudioEqualizer::applyParameters()