comparison 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
comparison
equal deleted inserted replaced
1579:232d6ddf257d 1580:c01cbe41aeb5
35 sv_samplerate_t targetRate = 0, 35 sv_samplerate_t targetRate = 0,
36 bool normalised = false, 36 bool normalised = false,
37 ProgressReporter *reporter = 0); 37 ProgressReporter *reporter = 0);
38 virtual ~DecodingWavFileReader(); 38 virtual ~DecodingWavFileReader();
39 39
40 virtual QString getError() const { return m_error; } 40 QString getError() const override { return m_error; }
41 virtual QString getLocation() const { return m_source.getLocation(); } 41 QString getLocation() const override { return m_source.getLocation(); }
42 static void getSupportedExtensions(std::set<QString> &extensions); 42 static void getSupportedExtensions(std::set<QString> &extensions);
43 static bool supportsExtension(QString ext); 43 static bool supportsExtension(QString ext);
44 static bool supportsContentType(QString type); 44 static bool supportsContentType(QString type);
45 static bool supports(FileSource &source); 45 static bool supports(FileSource &source);
46 46
47 virtual int getDecodeCompletion() const { return m_completion; } 47 int getDecodeCompletion() const override { return m_completion; }
48 48
49 virtual bool isUpdating() const { 49 bool isUpdating() const override {
50 return m_decodeThread && m_decodeThread->isRunning(); 50 return m_decodeThread && m_decodeThread->isRunning();
51 } 51 }
52 52
53 public slots: 53 public slots:
54 void cancelled(); 54 void cancelled();
68 68
69 class DecodeThread : public Thread 69 class DecodeThread : public Thread
70 { 70 {
71 public: 71 public:
72 DecodeThread(DecodingWavFileReader *reader) : m_reader(reader) { } 72 DecodeThread(DecodingWavFileReader *reader) : m_reader(reader) { }
73 virtual void run(); 73 void run() override;
74 74
75 protected: 75 protected:
76 DecodingWavFileReader *m_reader; 76 DecodingWavFileReader *m_reader;
77 }; 77 };
78 78