comparison data/fileio/MP3FileReader.h @ 1580:c01cbe41aeb5 fix-static-analysis

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:48:45 +0000
parents 48e9f538e6e9
children ad5f892c0c4d
comparison
equal deleted inserted replaced
1579:232d6ddf257d 1580:c01cbe41aeb5
72 sv_samplerate_t targetRate = 0, 72 sv_samplerate_t targetRate = 0,
73 bool normalised = false, 73 bool normalised = false,
74 ProgressReporter *reporter = 0); 74 ProgressReporter *reporter = 0);
75 virtual ~MP3FileReader(); 75 virtual ~MP3FileReader();
76 76
77 virtual QString getError() const { return m_error; } 77 QString getError() const override { return m_error; }
78 78
79 virtual QString getLocation() const { return m_source.getLocation(); } 79 QString getLocation() const override { return m_source.getLocation(); }
80 virtual QString getTitle() const { return m_title; } 80 QString getTitle() const override { return m_title; }
81 virtual QString getMaker() const { return m_maker; } 81 QString getMaker() const override { return m_maker; }
82 virtual TagMap getTags() const { return m_tags; } 82 TagMap getTags() const override { return m_tags; }
83 83
84 static void getSupportedExtensions(std::set<QString> &extensions); 84 static void getSupportedExtensions(std::set<QString> &extensions);
85 static bool supportsExtension(QString ext); 85 static bool supportsExtension(QString ext);
86 static bool supportsContentType(QString type); 86 static bool supportsContentType(QString type);
87 static bool supports(FileSource &source); 87 static bool supports(FileSource &source);
88 88
89 virtual int getDecodeCompletion() const { return m_completion; } 89 int getDecodeCompletion() const override { return m_completion; }
90 90
91 virtual bool isUpdating() const { 91 bool isUpdating() const override {
92 return m_decodeThread && m_decodeThread->isRunning(); 92 return m_decodeThread && m_decodeThread->isRunning();
93 } 93 }
94 94
95 public slots: 95 public slots:
96 void cancelled(); 96 void cancelled();
142 142
143 class DecodeThread : public Thread 143 class DecodeThread : public Thread
144 { 144 {
145 public: 145 public:
146 DecodeThread(MP3FileReader *reader) : m_reader(reader) { } 146 DecodeThread(MP3FileReader *reader) : m_reader(reader) { }
147 virtual void run(); 147 void run() override;
148 148
149 protected: 149 protected:
150 MP3FileReader *m_reader; 150 MP3FileReader *m_reader;
151 }; 151 };
152 152