Improve readability and type-safety

Use nullptr instead of 0 or NULL to initialize a null pointer. In some
cases, readability was enhanced by replacing 0 with more meaningful
values according to the type of the pointer being initialized.
This commit is contained in:
Gianluca Recchia 2018-10-28 15:47:24 +01:00
parent 7208635502
commit 896a66e6d8
No known key found for this signature in database
GPG key ID: 3C2B4128D9A1F218
22 changed files with 47 additions and 47 deletions

View file

@ -111,7 +111,7 @@ void HostInstaller::installBrowser(SupportedBrowsers browser,
// Always create the script file
QJsonObject script = constructFile(browser, proxy, location);
if (!saveFile(browser, script)) {
QMessageBox::critical(0,
QMessageBox::critical(nullptr,
tr("KeePassXC: Cannot save file!"),
tr("Cannot save the native messaging script file."),
QMessageBox::Ok);