Clang-Tidy and Clazy fixes
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
|
||||
const char *LyricsSettingsPage::kSettingsGroup = "Lyrics";
|
||||
|
||||
LyricsSettingsPage::LyricsSettingsPage(SettingsDialog *parent) : SettingsPage(parent), ui_(new Ui::LyricsSettingsPage), provider_selected_(false) {
|
||||
LyricsSettingsPage::LyricsSettingsPage(SettingsDialog *dialog, QWidget *parent) : SettingsPage(dialog, parent), ui_(new Ui::LyricsSettingsPage), provider_selected_(false) {
|
||||
|
||||
ui_->setupUi(this);
|
||||
setWindowIcon(IconLoader::Load("view-media-lyrics"));
|
||||
@@ -65,7 +65,7 @@ LyricsSettingsPage::LyricsSettingsPage(SettingsDialog *parent) : SettingsPage(pa
|
||||
NoProviderSelected();
|
||||
DisableAuthentication();
|
||||
|
||||
dialog()->installEventFilter(this);
|
||||
dialog->installEventFilter(this);
|
||||
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ void LyricsSettingsPage::Save() {
|
||||
QStringList providers;
|
||||
for (int i = 0 ; i < ui_->providers->count() ; ++i) {
|
||||
const QListWidgetItem *item = ui_->providers->item(i);
|
||||
if (item->checkState() == Qt::Checked) providers << item->text();
|
||||
if (item->checkState() == Qt::Checked) providers << item->text(); // clazy:exclude=reserve-candidates
|
||||
}
|
||||
|
||||
QSettings s;
|
||||
|
||||
Reference in New Issue
Block a user