Mercurial > hg > svcore
comparison data/fileio/OggVorbisFileReader.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | 1c9bbbb6116a |
children |
comparison
equal
deleted
inserted
replaced
1579:232d6ddf257d | 1580:c01cbe41aeb5 |
---|---|
42 sv_samplerate_t targetRate = 0, | 42 sv_samplerate_t targetRate = 0, |
43 bool normalised = false, | 43 bool normalised = false, |
44 ProgressReporter *reporter = nullptr); | 44 ProgressReporter *reporter = nullptr); |
45 virtual ~OggVorbisFileReader(); | 45 virtual ~OggVorbisFileReader(); |
46 | 46 |
47 virtual QString getError() const { return m_error; } | 47 QString getError() const override { return m_error; } |
48 | 48 |
49 virtual QString getLocation() const { return m_source.getLocation(); } | 49 QString getLocation() const override { return m_source.getLocation(); } |
50 virtual QString getTitle() const { return m_title; } | 50 QString getTitle() const override { return m_title; } |
51 virtual QString getMaker() const { return m_maker; } | 51 QString getMaker() const override { return m_maker; } |
52 virtual TagMap getTags() const { return m_tags; } | 52 TagMap getTags() const override { return m_tags; } |
53 | 53 |
54 static void getSupportedExtensions(std::set<QString> &extensions); | 54 static void getSupportedExtensions(std::set<QString> &extensions); |
55 static bool supportsExtension(QString ext); | 55 static bool supportsExtension(QString ext); |
56 static bool supportsContentType(QString type); | 56 static bool supportsContentType(QString type); |
57 static bool supports(FileSource &source); | 57 static bool supports(FileSource &source); |
58 | 58 |
59 virtual int getDecodeCompletion() const { return m_completion; } | 59 int getDecodeCompletion() const override { return m_completion; } |
60 | 60 |
61 virtual bool isUpdating() const { | 61 bool isUpdating() const override { |
62 return m_decodeThread && m_decodeThread->isRunning(); | 62 return m_decodeThread && m_decodeThread->isRunning(); |
63 } | 63 } |
64 | 64 |
65 public slots: | 65 public slots: |
66 void cancelled(); | 66 void cancelled(); |
89 | 89 |
90 class DecodeThread : public Thread | 90 class DecodeThread : public Thread |
91 { | 91 { |
92 public: | 92 public: |
93 DecodeThread(OggVorbisFileReader *reader) : m_reader(reader) { } | 93 DecodeThread(OggVorbisFileReader *reader) : m_reader(reader) { } |
94 virtual void run(); | 94 void run() override; |
95 | 95 |
96 protected: | 96 protected: |
97 OggVorbisFileReader *m_reader; | 97 OggVorbisFileReader *m_reader; |
98 }; | 98 }; |
99 | 99 |