From 4f38f950b0e4b0637a2a267638496a44456ae456 Mon Sep 17 00:00:00 2001 From: Michael Goddard Date: Tue, 14 Feb 2012 10:56:04 +1000 Subject: Fix some compiler warnings. As it turns out, we had an overloaded virtual from an earlier era, with the extra parameter never used. So cleaning that up was a bonus to remove the compiler warning. Change-Id: I780287f8a5d2b0a1ec84ec62c88ba50e051f372b Reviewed-by: Jonas Rabbe --- examples/spectrum/app/waveform.cpp | 1 + examples/spectrum/app/wavfile.h | 1 + 2 files changed, 2 insertions(+) (limited to 'examples/spectrum') diff --git a/examples/spectrum/app/waveform.cpp b/examples/spectrum/app/waveform.cpp index 420a01eb0..744c98063 100644 --- a/examples/spectrum/app/waveform.cpp +++ b/examples/spectrum/app/waveform.cpp @@ -393,6 +393,7 @@ void Waveform::paintTile(int index) const int offset = reinterpret_cast(ptr) - m_buffer.constData(); Q_ASSERT(offset >= 0); Q_ASSERT(offset < m_bufferLength); + Q_UNUSED(offset); const qint16 pcmValue = *ptr; const qreal realValue = pcmToReal(pcmValue); diff --git a/examples/spectrum/app/wavfile.h b/examples/spectrum/app/wavfile.h index cd4988d23..eb867241d 100644 --- a/examples/spectrum/app/wavfile.h +++ b/examples/spectrum/app/wavfile.h @@ -51,6 +51,7 @@ class WavFile : public QFile public: WavFile(QObject *parent = 0); + using QFile::open; bool open(const QString &fileName); const QAudioFormat &fileFormat() const; qint64 headerLength() const; -- cgit v1.2.3