modernize: Use auto where the type is clear from context
[quassel.git] / src / qtui / settingspages / ignorelistsettingspage.cpp
index 50b978e..82375bf 100644 (file)
@@ -139,7 +139,7 @@ void IgnoreListSettingsPage::newIgnoreRule(QString rule)
         enableOkButton = true;
     }
 
-    IgnoreListEditDlg *dlg = new IgnoreListEditDlg(newItem, this, enableOkButton);
+    auto *dlg = new IgnoreListEditDlg(newItem, this, enableOkButton);
     dlg->enableOkButton(enableOkButton);
     while (dlg->exec() == QDialog::Accepted) {
         if (!_ignoreListModel.newIgnoreRule(dlg->ignoreListItem())) {