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

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:48:45 +0000
parents 954d0cf29ca7
children ce185d4dd408
comparison
equal deleted inserted replaced
1579:232d6ddf257d 1580:c01cbe41aeb5
46 WavFileReader(FileSource source, 46 WavFileReader(FileSource source,
47 bool fileUpdating = false, 47 bool fileUpdating = false,
48 Normalisation normalise = Normalisation::None); 48 Normalisation normalise = Normalisation::None);
49 virtual ~WavFileReader(); 49 virtual ~WavFileReader();
50 50
51 virtual QString getLocation() const { return m_source.getLocation(); } 51 QString getLocation() const override { return m_source.getLocation(); }
52 virtual QString getError() const { return m_error; } 52 QString getError() const override { return m_error; }
53 53
54 virtual QString getLocalFilename() const { return m_path; } 54 QString getLocalFilename() const override { return m_path; }
55 55
56 virtual bool isQuicklySeekable() const { return m_seekable; } 56 bool isQuicklySeekable() const override { return m_seekable; }
57 57
58 /** 58 /**
59 * Must be safe to call from multiple threads with different 59 * Must be safe to call from multiple threads with different
60 * arguments on the same object at the same time. 60 * arguments on the same object at the same time.
61 */ 61 */
62 virtual floatvec_t getInterleavedFrames(sv_frame_t start, sv_frame_t count) 62 floatvec_t getInterleavedFrames(sv_frame_t start, sv_frame_t count) const override;
63 const;
64 63
65 static void getSupportedExtensions(std::set<QString> &extensions); 64 static void getSupportedExtensions(std::set<QString> &extensions);
66 static bool supportsExtension(QString ext); 65 static bool supportsExtension(QString ext);
67 static bool supportsContentType(QString type); 66 static bool supportsContentType(QString type);
68 static bool supports(FileSource &source); 67 static bool supports(FileSource &source);
69 68
70 virtual int getDecodeCompletion() const { return 100; } 69 int getDecodeCompletion() const override { return 100; }
71 70
72 bool isUpdating() const { return m_updating; } 71 bool isUpdating() const override { return m_updating; }
73 72
74 void updateFrameCount(); 73 void updateFrameCount();
75 void updateDone(); 74 void updateDone();
76 75
77 protected: 76 protected: