Mercurial > hg > svcore
diff data/fileio/DecodingWavFileReader.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | 54af1e21705c |
children | ad5f892c0c4d |
line wrap: on
line diff
--- a/data/fileio/DecodingWavFileReader.h Thu Nov 22 14:55:18 2018 +0000 +++ b/data/fileio/DecodingWavFileReader.h Mon Nov 26 13:48:45 2018 +0000 @@ -37,16 +37,16 @@ ProgressReporter *reporter = 0); virtual ~DecodingWavFileReader(); - virtual QString getError() const { return m_error; } - virtual QString getLocation() const { return m_source.getLocation(); } + QString getError() const override { return m_error; } + QString getLocation() const override { return m_source.getLocation(); } static void getSupportedExtensions(std::set<QString> &extensions); static bool supportsExtension(QString ext); static bool supportsContentType(QString type); static bool supports(FileSource &source); - virtual int getDecodeCompletion() const { return m_completion; } + int getDecodeCompletion() const override { return m_completion; } - virtual bool isUpdating() const { + bool isUpdating() const override { return m_decodeThread && m_decodeThread->isRunning(); } @@ -70,7 +70,7 @@ { public: DecodeThread(DecodingWavFileReader *reader) : m_reader(reader) { } - virtual void run(); + void run() override; protected: DecodingWavFileReader *m_reader;