Mercurial > hg > svcore
comparison data/model/PathModel.h @ 1580:c01cbe41aeb5 fix-static-analysis
Use override throughout
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:48:45 +0000 |
parents | 57633d605547 |
children | ad5f892c0c4d |
comparison
equal
deleted
inserted
replaced
1579:232d6ddf257d | 1580:c01cbe41aeb5 |
---|---|
69 { | 69 { |
70 public: | 70 public: |
71 PathModel(sv_samplerate_t sampleRate, int resolution, bool notify = true) : | 71 PathModel(sv_samplerate_t sampleRate, int resolution, bool notify = true) : |
72 SparseModel<PathPoint>(sampleRate, resolution, notify) { } | 72 SparseModel<PathPoint>(sampleRate, resolution, notify) { } |
73 | 73 |
74 virtual void toXml(QTextStream &out, | 74 void toXml(QTextStream &out, |
75 QString indent = "", | 75 QString indent = "", |
76 QString extraAttributes = "") const | 76 QString extraAttributes = "") const override |
77 { | 77 { |
78 SparseModel<PathPoint>::toXml | 78 SparseModel<PathPoint>::toXml |
79 (out, | 79 (out, |
80 indent, | 80 indent, |
81 QString("%1 subtype=\"path\"") | 81 QString("%1 subtype=\"path\"") |
83 } | 83 } |
84 | 84 |
85 /** | 85 /** |
86 * TabularModel is inherited via SparseModel, but we don't need it here. | 86 * TabularModel is inherited via SparseModel, but we don't need it here. |
87 */ | 87 */ |
88 virtual QString getHeading(int) const { return ""; } | 88 QString getHeading(int) const override { return ""; } |
89 virtual bool isColumnTimeValue(int) const { return false; } | 89 bool isColumnTimeValue(int) const override { return false; } |
90 virtual SortType getSortType(int) const { return SortNumeric; } | 90 SortType getSortType(int) const override { return SortNumeric; } |
91 | 91 |
92 }; | 92 }; |
93 | 93 |
94 | 94 |
95 #endif | 95 #endif |