diff --git a/src/smartplaylists/smartplaylistquerywizardplugin.cpp b/src/smartplaylists/smartplaylistquerywizardplugin.cpp index 1d3b6272b..feb4a5beb 100644 --- a/src/smartplaylists/smartplaylistquerywizardplugin.cpp +++ b/src/smartplaylists/smartplaylistquerywizardplugin.cpp @@ -43,7 +43,7 @@ class SmartPlaylistQueryWizardPlugin::SearchPage : public QWizardPage { ui_->setupUi(this); } - bool isComplete() const { + bool isComplete() const override { if (ui_->type->currentIndex() == 2) // All songs return true; @@ -67,9 +67,9 @@ class SmartPlaylistQueryWizardPlugin::SortPage : public QWizardPage { SortPage(SmartPlaylistQueryWizardPlugin *plugin, QWidget *parent, int next_id) : QWizardPage(parent), next_id_(next_id), plugin_(plugin) {} - void showEvent(QShowEvent*) { plugin_->UpdateSortPreview(); } + void showEvent(QShowEvent*) override { plugin_->UpdateSortPreview(); } - int nextId() const { return next_id_; } + int nextId() const override { return next_id_; } int next_id_; SmartPlaylistQueryWizardPlugin *plugin_; diff --git a/src/smartplaylists/smartplaylistsearchtermwidget.cpp b/src/smartplaylists/smartplaylistsearchtermwidget.cpp index 642884c04..8f9e02d9a 100644 --- a/src/smartplaylists/smartplaylistsearchtermwidget.cpp +++ b/src/smartplaylists/smartplaylistsearchtermwidget.cpp @@ -314,7 +314,7 @@ void SmartPlaylistSearchTermWidget::set_overlay_opacity(float opacity) { } float SmartPlaylistSearchTermWidget::overlay_opacity() const { - return overlay_ ? overlay_->opacity() : 0.0; + return overlay_ ? overlay_->opacity() : float(0.0); } void SmartPlaylistSearchTermWidget::SetTerm(const SmartPlaylistSearchTerm &term) { diff --git a/src/smartplaylists/smartplaylistwizard.cpp b/src/smartplaylists/smartplaylistwizard.cpp index 76cd4bfc8..067334154 100644 --- a/src/smartplaylists/smartplaylistwizard.cpp +++ b/src/smartplaylists/smartplaylistwizard.cpp @@ -38,7 +38,7 @@ class SmartPlaylistWizard::TypePage : public QWizardPage { public: explicit TypePage(QWidget *parent) : QWizardPage(parent), next_id_(-1) {} - int nextId() const { return next_id_; } + int nextId() const override { return next_id_; } int next_id_; }; @@ -51,8 +51,8 @@ class SmartPlaylistWizard::FinishPage : public QWizardPage { ~FinishPage() { delete ui_; } - int nextId() const { return -1; } - bool isComplete() const { return !ui_->name->text().isEmpty(); } + int nextId() const override { return -1; } + bool isComplete() const override { return !ui_->name->text().isEmpty(); } Ui_SmartPlaylistWizardFinishPage *ui_;