comparison data/model/SparseModel.h @ 1608:0e0947896fd3

Fix compiler warnings
author Chris Cannam
date Wed, 27 Feb 2019 12:31:12 +0000
parents c01cbe41aeb5
children 560453546749
comparison
equal deleted inserted replaced
1607:a77fc6da288b 1608:0e0947896fd3
54 SparseModel(sv_samplerate_t sampleRate, int resolution, 54 SparseModel(sv_samplerate_t sampleRate, int resolution,
55 bool notifyOnAdd = true); 55 bool notifyOnAdd = true);
56 virtual ~SparseModel() { } 56 virtual ~SparseModel() { }
57 57
58 bool isOK() const override { return true; } 58 bool isOK() const override { return true; }
59 virtual sv_frame_t getStartFrame() const; 59 sv_frame_t getStartFrame() const override;
60 virtual sv_frame_t getEndFrame() const; 60 sv_frame_t getEndFrame() const override;
61 sv_samplerate_t getSampleRate() const override { return m_sampleRate; } 61 sv_samplerate_t getSampleRate() const override { return m_sampleRate; }
62 62
63 // Number of frames of the underlying sample rate that this model 63 // Number of frames of the underlying sample rate that this model
64 // is capable of resolving to. For example, if m_resolution == 10 64 // is capable of resolving to. For example, if m_resolution == 10
65 // then every point in this model will be at a multiple of 10 65 // then every point in this model will be at a multiple of 10
162 162
163 QString getTypeName() const override { return tr("Sparse"); } 163 QString getTypeName() const override { return tr("Sparse"); }
164 164
165 virtual QString getXmlOutputType() const { return "sparse"; } 165 virtual QString getXmlOutputType() const { return "sparse"; }
166 166
167 virtual void toXml(QTextStream &out, 167 void toXml(QTextStream &out,
168 QString indent = "", 168 QString indent = "",
169 QString extraAttributes = "") const; 169 QString extraAttributes = "") const override;
170 170
171 QString toDelimitedDataString(QString delimiter) const override { 171 QString toDelimitedDataString(QString delimiter) const override {
172 return toDelimitedDataStringWithOptions 172 return toDelimitedDataStringWithOptions
173 (delimiter, DataExportDefaults); 173 (delimiter, DataExportDefaults);
174 } 174 }