fix -Wzero-as-null-pointer-constant warnings

parent 78b4309b
......@@ -49,5 +49,6 @@ KgpgDetailedInfo::KgpgDetailedInfo(QWidget *parent, const QString &boxLabel, con
connect(buttonBox, &QDialogButtonBox::rejected, this, &KgpgDetailedInfo::reject);
okButton->setDefault(true);
setModal(true);
KMessageBox::createKMessageBox(this, buttonBox, QMessageBox::Information, boxLabel, keysList, QString(), nullptr, 0, errormessage);
KMessageBox::createKMessageBox(this, buttonBox, QMessageBox::Information, boxLabel, keysList, QString(), nullptr,
KMessageBox::Options(), errormessage);
}
......@@ -1016,7 +1016,7 @@ void KeysManager::addToKAB()
void KeysManager::slotAddressbookSearchResult(KJob *job)
{
KGpgNode * const nd = m_addIds.value(job, 0);
KGpgNode * const nd = m_addIds.value(job, nullptr);
if (!nd)
return;
......@@ -1470,7 +1470,7 @@ void KeysManager::slotexport()
expopts << QLatin1String( "--export-options" ) << exportAttr;
if (page->checkServer->isChecked()) {
KeyServer *expServer = new KeyServer(0, imodel);
KeyServer *expServer = new KeyServer(nullptr, imodel);
expServer->slotSetExportAttribute(exportAttr);
expServer->slotSetKeyserver(page->destServer->currentText());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment