diff options
Diffstat (limited to 'examples/multimedia')
8 files changed, 14 insertions, 14 deletions
diff --git a/examples/multimedia/audioinput/audioinput.cpp b/examples/multimedia/audioinput/audioinput.cpp index 86da20d51..611500c41 100644 --- a/examples/multimedia/audioinput/audioinput.cpp +++ b/examples/multimedia/audioinput/audioinput.cpp @@ -122,8 +122,8 @@ void AudioInfo::stop() qint64 AudioInfo::readData(char *data, qint64 maxlen) { - Q_UNUSED(data) - Q_UNUSED(maxlen) + Q_UNUSED(data); + Q_UNUSED(maxlen); return 0; } diff --git a/examples/multimedia/audiooutput/audiooutput.cpp b/examples/multimedia/audiooutput/audiooutput.cpp index 69b4470be..b6eb41f69 100644 --- a/examples/multimedia/audiooutput/audiooutput.cpp +++ b/examples/multimedia/audiooutput/audiooutput.cpp @@ -83,7 +83,7 @@ void Generator::generateData(const QAudioFormat &format, qint64 durationUs, int qint64 length = (format.sampleRate() * format.channelCount() * (format.sampleSize() / 8)) * durationUs / 1000000; Q_ASSERT(length % sampleBytes == 0); - Q_UNUSED(sampleBytes) // suppress warning in release builds + Q_UNUSED(sampleBytes); // suppress warning in release builds m_buffer.resize(length); unsigned char *ptr = reinterpret_cast<unsigned char *>(m_buffer.data()); diff --git a/examples/multimedia/spectrum/app/engine.cpp b/examples/multimedia/spectrum/app/engine.cpp index d188259dc..f934f8788 100644 --- a/examples/multimedia/spectrum/app/engine.cpp +++ b/examples/multimedia/spectrum/app/engine.cpp @@ -675,8 +675,8 @@ void Engine::setPlayPosition(qint64 position, bool forceEmit) void Engine::calculateLevel(qint64 position, qint64 length) { #ifdef DISABLE_LEVEL - Q_UNUSED(position) - Q_UNUSED(length) + Q_UNUSED(position); + Q_UNUSED(length); #else Q_ASSERT(position + length <= m_bufferPosition + m_dataLength); @@ -707,7 +707,7 @@ void Engine::calculateLevel(qint64 position, qint64 length) void Engine::calculateSpectrum(qint64 position) { #ifdef DISABLE_SPECTRUM - Q_UNUSED(position) + Q_UNUSED(position); #else Q_ASSERT(position + m_spectrumBufferLength <= m_bufferPosition + m_dataLength); Q_ASSERT(0 == m_spectrumBufferLength % 2); // constraint of FFT algorithm diff --git a/examples/multimedia/spectrum/app/levelmeter.cpp b/examples/multimedia/spectrum/app/levelmeter.cpp index 1c720905c..f0c66eeb3 100644 --- a/examples/multimedia/spectrum/app/levelmeter.cpp +++ b/examples/multimedia/spectrum/app/levelmeter.cpp @@ -133,7 +133,7 @@ void LevelMeter::redrawTimerExpired() void LevelMeter::paintEvent(QPaintEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); QPainter painter(this); painter.fillRect(rect(), Qt::black); diff --git a/examples/multimedia/spectrum/app/mainwidget.cpp b/examples/multimedia/spectrum/app/mainwidget.cpp index 235608a05..d6163f7f9 100644 --- a/examples/multimedia/spectrum/app/mainwidget.cpp +++ b/examples/multimedia/spectrum/app/mainwidget.cpp @@ -167,7 +167,7 @@ void MainWidget::errorMessage(const QString &heading, const QString &detail) void MainWidget::timerEvent(QTimerEvent *event) { Q_ASSERT(event->timerId() == m_infoMessageTimerId); - Q_UNUSED(event) // suppress warnings in release builds + Q_UNUSED(event); // suppress warnings in release builds killTimer(m_infoMessageTimerId); m_infoMessageTimerId = NullTimerId; m_infoMessage->setText(""); @@ -178,7 +178,7 @@ void MainWidget::audioPositionChanged(qint64 position) #ifndef DISABLE_WAVEFORM m_waveform->audioPositionChanged(position); #else - Q_UNUSED(position) + Q_UNUSED(position); #endif } diff --git a/examples/multimedia/spectrum/app/spectrograph.cpp b/examples/multimedia/spectrum/app/spectrograph.cpp index 04ef51e80..6eaa097fc 100644 --- a/examples/multimedia/spectrum/app/spectrograph.cpp +++ b/examples/multimedia/spectrum/app/spectrograph.cpp @@ -86,7 +86,7 @@ void Spectrograph::setParams(int numBars, qreal lowFreq, qreal highFreq) void Spectrograph::timerEvent(QTimerEvent *event) { Q_ASSERT(event->timerId() == m_timerId); - Q_UNUSED(event) // suppress warnings in release builds + Q_UNUSED(event); // suppress warnings in release builds killTimer(m_timerId); m_timerId = NullTimerId; m_barSelected = NullIndex; @@ -95,7 +95,7 @@ void Spectrograph::timerEvent(QTimerEvent *event) void Spectrograph::paintEvent(QPaintEvent *event) { - Q_UNUSED(event) + Q_UNUSED(event); QPainter painter(this); painter.fillRect(rect(), Qt::black); diff --git a/examples/multimedia/spectrum/app/spectrumanalyser.cpp b/examples/multimedia/spectrum/app/spectrumanalyser.cpp index ee024147f..6daa1c6aa 100644 --- a/examples/multimedia/spectrum/app/spectrumanalyser.cpp +++ b/examples/multimedia/spectrum/app/spectrumanalyser.cpp @@ -201,7 +201,7 @@ void SpectrumAnalyser::setWindowFunction(WindowFunction type) Qt::AutoConnection, Q_ARG(WindowFunction, type)); Q_ASSERT(b); - Q_UNUSED(b) // suppress warnings in release builds + Q_UNUSED(b); // suppress warnings in release builds } void SpectrumAnalyser::calculate(const QByteArray &buffer, @@ -247,7 +247,7 @@ void SpectrumAnalyser::calculate(const QByteArray &buffer, Q_ARG(int, format.sampleRate()), Q_ARG(int, bytesPerSample)); Q_ASSERT(b); - Q_UNUSED(b) // suppress warnings in release builds + Q_UNUSED(b); // suppress warnings in release builds #ifdef DUMP_SPECTRUMANALYSER m_textStream << "FrequencySpectrum " << m_count << "\n"; diff --git a/examples/multimedia/spectrum/app/tonegenerator.cpp b/examples/multimedia/spectrum/app/tonegenerator.cpp index 1718d1c69..2e549ab4f 100644 --- a/examples/multimedia/spectrum/app/tonegenerator.cpp +++ b/examples/multimedia/spectrum/app/tonegenerator.cpp @@ -65,7 +65,7 @@ void generateTone(const SweptTone &tone, const QAudioFormat &format, QByteArray const int numSamples = buffer.size() / sampleBytes; Q_ASSERT(length % sampleBytes == 0); - Q_UNUSED(sampleBytes) // suppress warning in release builds + Q_UNUSED(sampleBytes); // suppress warning in release builds unsigned char *ptr = reinterpret_cast<unsigned char *>(buffer.data()); |