refactor: Use override instead of virtual where possible (#4917)
This commit is contained in:
@@ -20,7 +20,7 @@ enum class Platform : uint8_t {
|
||||
class NotificationController final : public Singleton, private QObject
|
||||
{
|
||||
public:
|
||||
virtual void initialize(Settings &settings, Paths &paths) override;
|
||||
void initialize(Settings &settings, Paths &paths) override;
|
||||
|
||||
bool isChannelNotified(const QString &channelName, Platform p);
|
||||
void updateChannelNotification(const QString &channelName, Platform p);
|
||||
|
||||
@@ -14,12 +14,12 @@ class NotificationModel : public SignalVectorModel<QString>
|
||||
|
||||
protected:
|
||||
// turn a vector item into a model row
|
||||
virtual QString getItemFromRow(std::vector<QStandardItem *> &row,
|
||||
const QString &original) override;
|
||||
QString getItemFromRow(std::vector<QStandardItem *> &row,
|
||||
const QString &original) override;
|
||||
|
||||
// turns a row in the model into a vector item
|
||||
virtual void getRowFromItem(const QString &item,
|
||||
std::vector<QStandardItem *> &row) override;
|
||||
void getRowFromItem(const QString &item,
|
||||
std::vector<QStandardItem *> &row) override;
|
||||
|
||||
friend class NotificationController;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user